1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-07 09:18: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:
Jermolene
2017-07-12 16:47:52 +01:00
parent d966583854
commit f59809e9a4
16 changed files with 82 additions and 24 deletions

View File

@@ -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>