NicolasPetton / Projectify

Project management for TiddlyWiki
https://projectify.wiki
MIT License
140 stars 47 forks source link

Issue with horizontal spacing of toogle todo button #57

Open es-kha opened 3 years ago

es-kha commented 3 years ago

Hello Nicolas,

The "toogle todo" button in tiddler toolbar has different horizontal spacing than other toolbar buttons.

This additional spacing is generated by some carriage return in $:/plugins/nico/projectify/ui/buttons/ToggleTodo

I propose the following modification of its content to fix it. (Other solution may exist using the "\whitespace" pragma but I did not manage to get expected result.)

\define save-actions()
  <$action-sendmessage $message="tm-auto-save-wiki"/>
\end

<$list filter=<<py-is-todo>>><span class="py-toggle-todo-button">
<$checkbox tag="done" actions=<<save-actions>>> {{||$:/plugins/nico/projectify/ui/buttons/Checkbox}}</$checkbox></span>
</$list>

Best regards,

Eskha