diff --git a/core/ui/ViewTemplate/unfold.tid b/core/ui/ViewTemplate/unfold.tid new file mode 100644 index 000000000..331ec45ae --- /dev/null +++ b/core/ui/ViewTemplate/unfold.tid @@ -0,0 +1,9 @@ +title: $:/core/ui/ViewTemplate/unfold +tags: $:/tags/ViewTemplate + +<$reveal tag="div" class="tc-tiddler-body" type="nomatch" state=<> text="show" default="show" retain="yes" animate="yes"> +<$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class="tc-unfold-banner"> +<$action-sendmessage $message="tm-fold-tiddler" $param=<> foldedState=<>/> +{{$:/core/images/chevron-down}} + + diff --git a/core/ui/ViewToolbar/fold.tid b/core/ui/ViewToolbar/fold.tid index f86bb0dd1..aa6e384fd 100644 --- a/core/ui/ViewToolbar/fold.tid +++ b/core/ui/ViewToolbar/fold.tid @@ -3,10 +3,6 @@ tags: $:/tags/ViewToolbar caption: {{$:/core/images/fold-button}} {{$:/language/Buttons/Fold/Caption}} description: {{$:/language/Buttons/Fold/Hint}} -\define folded-state() -$:/state/folded/$(currentTiddler)$ -\end - <$reveal type="nomatch" state=<> text="hide" default="show"> <$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=<>> <$action-sendmessage $message="tm-fold-tiddler" $param=<> foldedState=<>/> diff --git a/core/wiki/tags/ViewTemplate.tid b/core/wiki/tags/ViewTemplate.tid index b7ccfcefc..c89951b72 100644 --- a/core/wiki/tags/ViewTemplate.tid +++ b/core/wiki/tags/ViewTemplate.tid @@ -1,2 +1,2 @@ title: $:/tags/ViewTemplate -list: [[$:/core/ui/ViewTemplate/title]] [[$:/core/ui/ViewTemplate/subtitle]] [[$:/core/ui/ViewTemplate/tags]] [[$:/core/ui/ViewTemplate/classic]] [[$:/core/ui/ViewTemplate/body]] +list: [[$:/core/ui/ViewTemplate/title]] [[$:/core/ui/ViewTemplate/subtitle]] [[$:/core/ui/ViewTemplate/tags]] [[$:/core/ui/ViewTemplate/classic]] [[$:/core/ui/ViewTemplate/body]] [[$:/core/ui/ViewTemplate/unfold]] diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 31b48e652..e6c6c334a 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -434,6 +434,30 @@ button svg.tc-image-button, button .tc-image-button img { width: 1em; } +.tc-unfold-banner { + padding: 0; + margin: 0; + background: none; + border: none; + width: 100%; + text-align: center; + border-top: 2px solid <>; + margin-top: 8px; +} + +.tc-unfold-banner:hover { + background: <>; +} + +.tc-unfold-banner svg { + height: 0.75em; + fill: <>; +} + +.tc-unfold-banner:hover svg { + fill: <>; +} + /* ** Tags and missing tiddlers */