kookma / TW-Commander

A tiddler toolkit for Tiddlywiki 5. Batch operations on bulk of tiddlers. Create, delete, add fields, tags, search and replace and inspect tiddlers.
https://kookma.github.io/TW-Commander/
49 stars 6 forks source link

Spaces in buttons need to be dealt with #32

Closed keatonlao closed 1 year ago

keatonlao commented 1 year ago

$:/plugins/kookma/commander/buttons/pagecontrol

Here are my modifications:

\whitespace trim
\define commander-button(class)
\whitespace trim
<$button to="$:/Commander" tooltip={{$:/language/Buttons/Commander/Hint}} aria-label={{$:/language/Buttons/Commander/Caption}} class="""$(tv-config-toolbar-class)$ $class$""">
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
{{$:/plugins/kookma/commander/images/commander.svg}}
</$list>
<$list filter="[<tv-config-toolbar-text>match[yes]]">
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Commander/Caption}}/></span>
</$list>
</$button>
\end

<$list filter="[list[$:/StoryList]] +[field:title[$:/Commander]]" emptyMessage=<<commander-button>>>
<<commander-button "tc-selected">>
</$list>

OCD, can't accept one more or less space

kookma commented 1 year ago

Hi @keatonlao I did not follow what is the issue. The commander button is based on $:/core/ui/Buttons/control-panel Did you see extra space in page control?

keatonlao commented 1 year ago

You can see it in $:/core/ui/ControlPanel/Toolbars/PageControls.

If you don't show the page button, the same can be seen in the More drop-down menu: $:/core/ui/Buttons/more-page-actions.

I found that the $:/plugins/kookma/utility/ui/Buttons/ViewFields button also has space problems.

To check page buttons for space problems, I usually check these items:

After hiding the buttons, repeat the check again

Thanks @kookma

kookma commented 1 year ago

Ah I got it thank you! A fix is coming in few minutes.