1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-05 18:26:56 +00:00

only style filtered tiddlers if there's something in the search input

This commit is contained in:
BurningTreeC 2024-10-11 15:15:48 +02:00
parent dbb3117105
commit 254406fb0b

View File

@ -15,16 +15,20 @@ tags: $:/tags/Stylesheet
);
}
<$list filter=<<tf.story-river.filter.match>> variable="filteredTiddler">
<%if [{$:/temp/search/input}!is[blank]] %>
<$set name="CSSEscapedTitle" value={{{ [<filteredTiddler>escapecss[]] }}}>
<$list filter=<<tf.story-river.filter.match>> variable="filteredTiddler">
[data-tiddler-title={{{ [<CSSEscapedTitle>] }}}].tc-tiddler-frame {
border: 3px solid <<colour primary>>;
}
<$set name="CSSEscapedTitle" value={{{ [<filteredTiddler>escapecss[]] }}}>
</$set>
[data-tiddler-title={{{ [<CSSEscapedTitle>] }}}].tc-tiddler-frame {
border: 3px solid <<colour primary>>;
}
</$list>
</$set>
</$list>
<% endif %>
<% endif %>