mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-12-07 01:08:06 +00:00
Use "whitespace trim" to improve spacing and legibility of view toolbar buttons
Previously, the standard toolbar buttons exhibited uneven spacing due to the vestigial whitespace.
This commit is contained in:
@@ -5,13 +5,17 @@ caption: {{$:/plugins/tiddlywiki/qrcode/icon}}
|
||||
short-caption: QR code
|
||||
description: Generate QR code for this tiddler
|
||||
|
||||
\whitespace trim
|
||||
<span class="tc-popup-keep">
|
||||
<$button popup=<<qualify "$:/state/popup/qrcode">> tooltip={{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton!!description}} aria-label={{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton!!short-caption}} class=<<tv-config-toolbar-class>> class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
|
||||
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/plugins/tiddlywiki/qrcode/icon}}
|
||||
</$list>
|
||||
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||
<span class="tc-btn-text"><$text text={{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton!!short-caption}}/></span>
|
||||
<span class="tc-btn-text">
|
||||
<$text text=" "/>
|
||||
<$text text={{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton!!short-caption}}/>
|
||||
</span>
|
||||
</$list>
|
||||
</$button>
|
||||
</span>
|
||||
|
||||
@@ -4,6 +4,8 @@ list-before: $:/core/ui/Buttons/edit
|
||||
caption: {{$:/plugins/tiddlywiki/text-slicer/images/text-slicer-icon}} Slice tiddler
|
||||
description: Slice this tiddler by headings and lists
|
||||
|
||||
\whitespace trim
|
||||
|
||||
\define hint()
|
||||
Slice this tiddler by headings and lists
|
||||
\end
|
||||
@@ -13,6 +15,6 @@ Slice this tiddler by headings and lists
|
||||
{{$:/plugins/tiddlywiki/text-slicer/images/text-slicer-icon}}
|
||||
</$list>
|
||||
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||
<span class="tc-btn-text">Slice tiddler</span>
|
||||
<span class="tc-btn-text"> Slice tiddler</span>
|
||||
</$list>
|
||||
</$button>
|
||||
Reference in New Issue
Block a user