From: Dan Brown Date: Sat, 14 May 2022 12:55:03 +0000 (+0100) Subject: Updated tri-layout sidebars to not be cut-off by padding X-Git-Tag: v22.06~1^2~21^2~1^2~11 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/78920d7d6555fbb1a06b83a9f72ecab64d1cae9d 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. --- diff --git a/resources/sass/_layout.scss b/resources/sass/_layout.scss index b1c80cb53..375f36d0f 100644 --- a/resources/sass/_layout.scss +++ b/resources/sass/_layout.scss @@ -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; diff --git a/resources/views/layouts/tri.blade.php b/resources/views/layouts/tri.blade.php index e95b21445..4571f4471 100644 --- a/resources/views/layouts/tri.blade.php +++ b/resources/views/layouts/tri.blade.php @@ -27,7 +27,7 @@
- -