From acc7224758903f22f5b2d5ba4f93e239b63bd4fe Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Sun, 4 Dec 2022 11:19:54 +0000 Subject: [PATCH] Ensure unfold indicator is always visible Fixes #7084 --- core/ui/ViewTemplate/unfold.tid | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/ui/ViewTemplate/unfold.tid b/core/ui/ViewTemplate/unfold.tid index 68fc27117..9b09f71a4 100644 --- a/core/ui/ViewTemplate/unfold.tid +++ b/core/ui/ViewTemplate/unfold.tid @@ -2,17 +2,21 @@ title: $:/core/ui/ViewTemplate/unfold tags: $:/tags/ViewTemplate \whitespace trim -<$reveal tag="div" type="nomatch" state="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar" text="hide"> +
+<$list filter="[{$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar}match[show]]" variable="ignore"> <$reveal tag="div" type="nomatch" stateTitle=<> text="hide" default="show" retain="yes" animate="yes"> <$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class="tc-fold-banner"> <$action-sendmessage $message="tm-fold-tiddler" $param=<> foldedState=<>/> {{$:/core/images/chevron-up}} + +<$list filter="[{$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar}match[show]] :else[get[text]match[hide]]" variable="ignore"> <$reveal tag="div" type="nomatch" stateTitle=<> text="show" default="show" retain="yes" animate="yes"> <$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class="tc-unfold-banner"> <$action-sendmessage $message="tm-fold-tiddler" $param=<> foldedState=<>/> {{$:/core/images/chevron-down}} - + +
\ No newline at end of file