mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-19 01:59:10 +08:00
Updated tri-layout sidebars to not be cut-off by padding
Would cause effect where scroll area would be cut of by spacing which looked a bit strange. This retains the same padding sizes but cuts the content at the header or top of viewport.
This commit is contained in:
parent
35a47a273b
commit
78920d7d65
@ -295,9 +295,9 @@ body.flexbox {
|
||||
}
|
||||
@include larger-than($xxl) {
|
||||
.tri-layout-left-contents, .tri-layout-right-contents {
|
||||
padding: $-m;
|
||||
padding: $-xl $-m;
|
||||
position: sticky;
|
||||
top: $-m;
|
||||
top: 0;
|
||||
max-height: 100vh;
|
||||
min-height: 50vh;
|
||||
overflow-y: scroll;
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
<div refs="tri-layout@container" class="tri-layout-container" @yield('container-attrs') >
|
||||
|
||||
<div class="tri-layout-left print-hidden pt-m" id="sidebar">
|
||||
<div class="tri-layout-left print-hidden" id="sidebar">
|
||||
<aside class="tri-layout-left-contents">
|
||||
@yield('left')
|
||||
</aside>
|
||||
@ -39,7 +39,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tri-layout-right print-hidden pt-m">
|
||||
<div class="tri-layout-right print-hidden">
|
||||
<aside class="tri-layout-right-contents">
|
||||
@yield('right')
|
||||
</aside>
|
||||
|
Loading…
x
Reference in New Issue
Block a user