1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-10 17:30:26 +00:00

clamp tiddlerwidth between minimum tiddlerwidth

This commit is contained in:
BurningTreeC 2024-11-12 11:09:44 +01:00
parent c03c3f2f85
commit 2bb115d1b4

View File

@ -1213,17 +1213,17 @@ button.tc-btn-invisible.tc-remove-tag-button {
@media (min-width: <<sidebarbreakpoint>>) { @media (min-width: <<sidebarbreakpoint>>) {
.tc-tiddler-frame { .tc-tiddler-frame {
padding: 28px 42px 42px 42px; padding: 28px 42px 42px 42px;
width: clamp(0px,calc(<<get.theme.metric tiddlerwidth>>),100%); width: clamp(calc(<<get.theme.metric storyminwidth>> - 84px),calc(<<get.theme.metric tiddlerwidth>>),100%);
border-radius: 2px; border-radius: 2px;
} }
.tc-sidebar-left .tc-tiddler-frame { .tc-sidebar-left .tc-tiddler-frame {
width: clamp(0px,calc(<<get.theme.metric tiddlerwidth>>),100%); width: clamp(calc(<<get.theme.metric storyminwidth>> - 84px),calc(<<get.theme.metric tiddlerwidth>>),100%);
} }
<<if-no-sidebar " <<if-no-sidebar "
.tc-tiddler-frame { .tc-tiddler-frame, .tc-sidebar-left .tc-tiddler-frame {
width: 100%; width: 100%;
left: auto; left: auto;
right: auto; right: auto;