1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-10 09:20:26 +00:00

Fix palette switcher

This commit is contained in:
Jeremy Ruston 2024-12-27 12:00:50 +00:00
parent 2558dc0b10
commit 6a06df79c4

View File

@ -8,19 +8,17 @@ title: $:/snippets/paletteswitcher
<$linkcatcher actions=<<actions>>> <$linkcatcher actions=<<actions>>>
<div class="tc-chooser tc-chooser-cards"> <div class="tc-chooser tc-chooser-cards">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]"> <$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]">
<$set name="cls" filter="[all[current]prefix{$:/palette}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"> <div class={{{ [<currentTiddler>match{$:/palette}then[tc-chosen]] tc-chooser-item +[join[ ]] }}}>
<div class=<<cls>>> <$link to={{!!title}} aria-label=`${[[$:/language/ControlPanel/Palette/Caption]get[text]]}$ - ${[all[current]get[name]]}$. ${[all[current]get[description]]}$`>
<$link to={{!!title}} aria-label=`${[[$:/language/ControlPanel/Palette/Caption]get[text]]}$ - ${[all[current]get[name]]}$. ${[all[current]get[description]]}$`> {{||$:/snippets/currpalettepreview}}
{{||$:/snippets/currpalettepreview}} <div class="tc-chooser-item-description">
<div class="tc-chooser-item-description"> ''<$view field="name" format="text"/>''
''<$view field="name" format="text"/>'' <div class="tc-chooser-item-subtitle">
<div class="tc-chooser-item-subtitle"> <$view field="description" format="text"/>
<$view field="description" format="text"/>
</div>
</div> </div>
</$link> </div>
</div> </$link>
</$set> </div>
</$list> </$list>
</div> </div>
</$linkcatcher> </$linkcatcher>