From d652f17aee953cba70b4e5e5cf18c0fe38aea887 Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Fri, 1 Nov 2024 16:54:19 +0100 Subject: [PATCH] fixes --- core/wiki/macros/sidebar-resizer.tid | 6 +++--- themes/tiddlywiki/vanilla/base.tid | 16 +++++++++------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/core/wiki/macros/sidebar-resizer.tid b/core/wiki/macros/sidebar-resizer.tid index a868e47b0..4fef40afa 100644 --- a/core/wiki/macros/sidebar-resizer.tid +++ b/core/wiki/macros/sidebar-resizer.tid @@ -123,8 +123,8 @@ title: $:/core/procedures/sidebar-resizer \end \function get.story-sidebar.padding() -[match[left]then] -:else[] +[match[left]thensubtract] +:else[subtract] \end \procedure set-storywidth-storyright-actions() @@ -140,7 +140,7 @@ title: $:/core/procedures/sidebar-resizer storyPaddingLeft={{{ [convert.to.pixels.locally] }}} storyPaddingRightValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then[0px]] :else[] }}} storyPaddingRight={{{ [convert.to.pixels.locally] }}} - sidebarMinWidth={{{ [convert.to.pixels.locallysubtract] }}} + sidebarMinWidth={{{ [convert.to.pixels.locally] :map[] }}} storyLeftValue={{{ [!is[blank]get[text]] :else[] }}} storyLeft={{{ [convert.to.pixels.locally] }}} clampedDiff={{{ [addaddsubtractcompare:number:gt[0]] ~0 }}} diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 978da8d66..e28143439 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -1025,14 +1025,14 @@ button.tc-btn-invisible.tc-remove-tag-button { overflow-y: auto; overflow-x: auto; -webkit-overflow-scrolling: touch; - margin: 0 0 0 -42px; + margin: 0 0 0 -<>; padding: 71px 0 28px 42px; } .tc-sidebar-left .tc-sidebar-scrollable { left: 0; right: clamp(calc({{$:/themes/tiddlywiki/vanilla/metrics/storyleft}} + {{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}}),<>,calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}} + <>)); - margin: 0 0 0 0; + margin: 0 -<> 0 0; } html[dir="rtl"] .tc-sidebar-scrollable { @@ -1054,13 +1054,16 @@ button.tc-btn-invisible.tc-remove-tag-button { } .tc-sidebar-left .tc-story-river { - left: clamp(calc({{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}}),calc(100% - <> - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}),calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}} + <>)); - width: clamp({{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}},<>,calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}} + <>)); + display: flex; + align-items: flex-end; + flex-direction: column; + left: clamp(calc({{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}} - <>),calc(100% - <> - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}),calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}})); + width: clamp({{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}},<>,calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}} - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}} + <>)); right: max(0px,calc({{$:/themes/tiddlywiki/vanilla/metrics/storyleft}})); } html[dir="rtl"] .tc-sidebar-left .tc-story-river { - left: clamp(calc({{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}}),calc(100% - <> - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}),calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}})); + left: clamp(calc({{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}}),calc(100% - <> - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}),calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}} - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}})); right: max(0px,{{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}); } @@ -1190,9 +1193,7 @@ button.tc-btn-invisible.tc-remove-tag-button { } .tc-sidebar-left .tc-tiddler-frame { - left: auto; width: clamp(0px,calc(<>),100%); - right: 0; } <>,calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}} - {{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}})); left: auto; + width: auto; right: 0; padding-right: <>; padding-left: 0;