mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 20:10:03 +00:00
f59809e9a4
Previously, the standard toolbar buttons exhibited uneven spacing due to the vestigial whitespace.
23 lines
795 B
Plaintext
23 lines
795 B
Plaintext
title: $:/core/ui/Buttons/new-here
|
|
tags: $:/tags/ViewToolbar
|
|
caption: {{$:/core/images/new-here-button}} {{$:/language/Buttons/NewHere/Caption}}
|
|
description: {{$:/language/Buttons/NewHere/Hint}}
|
|
|
|
\whitespace trim
|
|
\define newHereButtonTags()
|
|
[[$(currentTiddler)$]]
|
|
\end
|
|
\define newHereButton()
|
|
<$button tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<<tv-config-toolbar-class>>>
|
|
<$action-sendmessage $message="tm-new-tiddler" tags=<<newHereButtonTags>>/>
|
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
|
{{$:/core/images/new-here-button}}
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
|
<span class="tc-btn-text">
|
|
<$text text={{$:/language/Buttons/NewHere/Caption}}/>
|
|
</span>
|
|
</$list>
|
|
</$button>
|
|
\end
|
|
<<newHereButton>> |