From e96a4df9f0fe61bd55da42f4e68900fd0e509f0d Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Wed, 2 Oct 2024 05:27:03 +0200 Subject: [PATCH] make sidebarbreakpoint and sidebarbreakpoint-minus-one functions --- themes/tiddlywiki/vanilla/sidebar-resizer.tid | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/themes/tiddlywiki/vanilla/sidebar-resizer.tid b/themes/tiddlywiki/vanilla/sidebar-resizer.tid index 3d86f7b98..782d3f367 100644 --- a/themes/tiddlywiki/vanilla/sidebar-resizer.tid +++ b/themes/tiddlywiki/vanilla/sidebar-resizer.tid @@ -2,13 +2,9 @@ title: $:/themes/tiddlywiki/vanilla/sidebar-resizer tags: [[$:/tags/Stylesheet]] code-body: yes -\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[1]addsuffix[px]] ~[{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}] \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock conditional