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:
parent
dbb3117105
commit
254406fb0b
@ -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 %>
|
||||
|
Loading…
x
Reference in New Issue
Block a user