1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-06 02:37:14 +00:00

Merge e19e5d07bffbaa9f69203d2db4be76d2f62e3108 into 961e74f73d230d0028efb586db07699120eac888

This commit is contained in:
Mario Pietsch 2025-04-04 15:00:28 +02:00 committed by GitHub
commit d372d5d1fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,28 +2,18 @@ title: $:/core/ui/PageTemplate/sidebar
tags: $:/tags/PageTemplate
\whitespace trim
\define config-title()
$:/config/SideBarSegments/Visibility/$(listItem)$
\end
\function config-title() [[$:/config/SideBarSegments/Visibility/$(listItem)$]substitute[]]
<$scrollable fallthrough="no" class="tc-sidebar-scrollable">
<div class="tc-sidebar-header">
<$reveal state="$:/state/sidebar" type="match" text="yes" default="yes" retain="yes" animate="yes">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SideBarSegment]!has[draft.of]]" variable="listItem">
<$reveal type="nomatch" state=<<config-title>> text="hide" tag="div">
<$transclude tiddler=<<listItem>> mode="block"/>
</$reveal>
</$list>
</$reveal>
</div>
<$reveal state="$:/state/sidebar"
tag="div" class="tc-sidebar-header"
type="match" text="yes" default="yes"
retain="yes" animate="yes"
>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SideBarSegment]!has[draft.of]]" variable="listItem">
<$reveal type="nomatch" state=<<config-title>> text="hide" tag="div">
<$transclude $tiddler=<<listItem>> $mode="block"/>
</$reveal>
</$list>
</$reveal>
</$scrollable>