diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 311df1249..55bdba904 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -1053,20 +1053,20 @@ button.tc-btn-invisible.tc-remove-tag-button { } .tc-sidebar-scrollable { - left: clamp(calc(<> + <> - <> + <> + <>),<>,calc(100% - <> + <>)); + left: clamp(min(calc(<> + <> - <> + <> + <>),calc(100% - <>)),<>,calc(100% - <> + <>)); } html[dir="rtl"] .tc-sidebar-left .tc-sidebar-scrollable, .tc-sidebar-left .tc-sidebar-scrollable { - right: clamp(calc(<> + <> - <> + <> + <>),<>,calc(100% - <> + <>)); + right: clamp(min(calc(<> + <> - <> + <> + <>),calc(100% - <>)),<>,calc(100% - <> + <>)); } html[dir="rtl"] .tc-sidebar-scrollable:not(.tc-sidebar-left .tc-sidebar-scrollable) { - left: clamp(calc(<> + <> - <> + <> + <>),<>,calc(100% - <> + <>)); + left: clamp(min(calc(<> + <> - <> + <> + <>),calc(100% - <>)),<>,calc(100% - <> + <>)); } .tc-story-river { left: max(0px,<>); - right: clamp(calc(<> - <> - <>),calc(100% - <> - <>),calc(100% - <> - <>)); + right: min(clamp(calc(<> - <> - <>),calc(100% - <> - <>),calc(100% - <> - <>)),calc(100% - <> - <>)); width: clamp(<>,<>,calc(100% - <> + <> - <> + <>)); } @@ -1074,13 +1074,13 @@ button.tc-btn-invisible.tc-remove-tag-button { display: flex; align-items: flex-end; flex-direction: column; - left: clamp(calc(<> - <> - <>),calc(100% - <> - <>),calc(100% - <> - <>)); + left: min(clamp(calc(<> - <> - <>),calc(100% - <> - <>),calc(100% - <> - <>)),calc(100% - <> - <>)); right: max(0px,<>); } html[dir="rtl"] .tc-sidebar-left .tc-story-river { align-items: flex-start; - left: clamp(calc(<> - <> - <>),calc(100% - <> - <>),calc(100% - <> - <>)); + left: min(clamp(calc(<> - <> - <>),calc(100% - <> - <>),calc(100% - <> - <>)),calc(100% - <> - <>)); right: max(0px,<>); } @@ -1088,7 +1088,7 @@ button.tc-btn-invisible.tc-remove-tag-button { display: flex; align-items: flex-end; flex-direction: column; - right: clamp(calc(<> - <> - <>),calc(100% - <> - <>),calc(100% - <> - <>)); + right: min(clamp(calc(<> - <> - <>),calc(100% - <> - <>),calc(100% - <> - <>)),calc(100% - <> - <>)); } <