mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-29 11:30:28 +00:00
2b6c87fb4b
* add a new-line before the log text to increase readability of the test output * make eslint, jslint happy * it shouldn't be there * fremove this file from my PRs * fix 4532. Links should not add unwanted whitespace, since this causes problems with CSS styling * remove whitespace from tiddler title and add a little bit of margin-right to the tiddler icon. * use default parameters for link handling, which results in less code * introduce tc-viewswitcher class to be able to style icon distance to text
15 lines
489 B
Plaintext
15 lines
489 B
Plaintext
title: $:/snippets/viewswitcher
|
|
|
|
\define icon()
|
|
$:/core/images/storyview-$(storyview)$
|
|
\end
|
|
<$linkcatcher to="$:/view">
|
|
<div class="tc-chooser tc-viewswitcher">
|
|
<$list filter="[storyviews[]]" variable="storyview">
|
|
<$set name="cls" filter="[<storyview>prefix{$:/view}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"><div class=<<cls>>>
|
|
<$link to=<<storyview>>><$transclude tiddler=<<icon>>/><$text text=<<storyview>>/></$link>
|
|
</div>
|
|
</$set>
|
|
</$list>
|
|
</div>
|
|
</$linkcatcher> |