]> BookStack Code Mirror - bookstack/commitdiff
Updated tri-layout sidebars to not be cut-off by padding
authorDan Brown <redacted>
Sat, 14 May 2022 12:55:03 +0000 (13:55 +0100)
committerDan Brown <redacted>
Sat, 14 May 2022 12:55:03 +0000 (13:55 +0100)
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.

resources/sass/_layout.scss
resources/views/layouts/tri.blade.php

index b1c80cb53eb7e95b3e3d3ceb023392ffad54a644..375f36d0f5ca4ad66c5b354e92750fa9fbdf07e9 100644 (file)
@@ -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;
index e95b21445295e851368ead241ef92d08353a6cdc..4571f4471ca94cd59428e9a73d4e20122c120129 100644 (file)
@@ -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>