From 6b31a1129f2edc76c3f41731dc696bce213b02fa Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Fri, 1 Nov 2024 09:06:11 +0100 Subject: [PATCH] adjustments for html dir=rtl --- themes/tiddlywiki/vanilla/base.tid | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 845436e0e..0391c6e7a 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -1036,6 +1036,7 @@ button.tc-btn-invisible.tc-remove-tag-button { } html[dir="rtl"] .tc-sidebar-scrollable { + padding-right: 42px; padding-left: 0; } @@ -1054,7 +1055,12 @@ 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}} - <>)); - right: max(0px,{{$:/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}})); + right: max(0px,{{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}); } html[dir="rtl"] .tc-story-river:not(.tc-sidebar-left .tc-story-river) {