1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-24 07:56:52 +00:00

fixes for sidebar hidden

This commit is contained in:
BurningTreeC 2024-10-20 19:24:02 +02:00
parent 140d43500b
commit fa42e6c10a
2 changed files with 31 additions and 6 deletions

View File

@ -23,10 +23,6 @@ tags: [[$:/tags/Stylesheet]]
padding-left: {{$:/themes/tiddlywiki/centralised/metrics/storypaddingleft}};
}
html[dir="rtl"] .tc-story-river, html[dir="rtl"] .tc-sidebar-scrollable {
text-align: right;
}
html .tc-sidebar-scrollable {
text-align: left;
left: 50%;
@ -40,10 +36,19 @@ tags: [[$:/tags/Stylesheet]]
right: 50%;
left: 0;
margin-right: min(calc((100% - (2 * {{$:/themes/tiddlywiki/centralised/metrics/sidebarminwidth}})) / 2 - 42px),calc({{$:/themes/tiddlywiki/centralised/metrics/storywidth}} / 2 - 42px));
padding-right: 0px;
padding-left: 42px;
}
html[dir="rtl"] .tc-sidebar-left .tc-sidebar-scrollable {
padding-right: 42px;
padding-left: 0;
}
html[dir="rtl"] .tc-story-river, html[dir="rtl"] .tc-sidebar-scrollable {
text-align: right;
}
html .tc-tiddler-frame {
width: 100%;
}

View File

@ -1071,13 +1071,23 @@ button.tc-btn-invisible.tc-remove-tag-button {
}
<<if-no-sidebar "
<<if-no-sidebar """
.tc-story-river {
width: calc(100% - max(0px,{{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}));
}
">>
.tc-sidebar-left .tc-story-river {
left: max(0px,{{$:/themes/tiddlywiki/vanilla/metrics/storyleft}});
right: 0;
}
html[dir="rtl"] .tc-sidebar-left .tc-story-river {
left: 0;
right: max(0px,{{$:/themes/tiddlywiki/vanilla/metrics/storyleft}});
}
""">>
.tc-story-river.tc-static-story-river {
margin-right: 0;
@ -1563,6 +1573,16 @@ html body.tc-body.tc-single-tiddler-window {
margin-right: 0;
}
.tc-sidebar-left .tc-story-river {
margin-left: max(<<get.theme.metric metrics/storypaddingleft>>,calc(<<get.theme.metric metrics/storypaddingleft>> + {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}));
margin-right: 0;
}
html[dir="rtl"] .tc-sidebar-left .tc-story-river {
margin-left: 0;
margin-right: max(<<get.theme.metric metrics/storypaddingleft>>,calc(<<get.theme.metric metrics/storypaddingleft>> + {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}));
}
body.tc-body .tc-page-container.tc-page-view-zoomin .tc-tiddler-frame {
width: 100%;
width: calc(100% - 84px);