From 3c3cca2cf65ca66ef40adac8a3f92bec148821f0 Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Wed, 2 Oct 2024 05:32:37 +0200 Subject: [PATCH] Update the sidebarbreakpoint macros They now are functions and remove 0.02px instead of 1 as proposed here: https://getbootstrap.com/docs/5.0/layout/breakpoints/ --- themes/tiddlywiki/vanilla/base.tid | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 112233016..087a8faa2 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -23,13 +23,9 @@ background-size:` {{$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize}}` \end -\define sidebarbreakpoint() -<$text text={{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}/> -\end +\function sidebarbreakpoint() [{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}] -\define sidebarbreakpoint-minus-one() -<$text text={{{ [{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}removesuffix[px]subtract[1]addsuffix[px]] ~[{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}] }}}/> -\end +\function sidebarbreakpoint-minus-one() [{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}removesuffix[px]subtract[0.02]addsuffix[px]] ~[{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}] \define if-fluid-fixed(text,hiddenSidebarText) <$reveal state="$:/themes/tiddlywiki/vanilla/options/sidebarlayout" type="match" text="fluid-fixed">