mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +00:00
f59809e9a4
Previously, the standard toolbar buttons exhibited uneven spacing due to the vestigial whitespace.
34 lines
1.4 KiB
Plaintext
34 lines
1.4 KiB
Plaintext
title: $:/core/ui/Buttons/fold
|
|
tags: $:/tags/ViewToolbar
|
|
caption: {{$:/core/images/fold-button}} {{$:/language/Buttons/Fold/Caption}}
|
|
description: {{$:/language/Buttons/Fold/Hint}}
|
|
|
|
\whitespace trim
|
|
<$reveal type="nomatch" state=<<folded-state>> text="hide" default="show">
|
|
<$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=<<tv-config-toolbar-class>>>
|
|
<$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/>
|
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]" variable="listItem">
|
|
{{$:/core/images/fold-button}}
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
|
<span class="tc-btn-text">
|
|
<$text text=" "/>
|
|
<$text text={{$:/language/Buttons/Fold/Caption}}/>
|
|
</span>
|
|
</$list>
|
|
</$button>
|
|
</$reveal>
|
|
<$reveal type="match" state=<<folded-state>> text="hide" default="show">
|
|
<$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=<<tv-config-toolbar-class>>>
|
|
<$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/>
|
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]" variable="listItem">
|
|
{{$:/core/images/unfold-button}}
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
|
<span class="tc-btn-text">
|
|
<$text text=" "/>
|
|
<$text text={{$:/language/Buttons/Unfold/Caption}}/>
|
|
</span>
|
|
</$list>
|
|
</$button>
|
|
</$reveal> |