]> BookStack Code Mirror - bookstack/commitdiff
Made docs sidebar a slight bit easier to scroll
authorDan Brown <redacted>
Sat, 28 Nov 2020 15:28:44 +0000 (15:28 +0000)
committerDan Brown <redacted>
Sat, 28 Nov 2020 15:28:44 +0000 (15:28 +0000)
Now it easily goes off the page, made it indapentally scrollable.
Will probably do something different in future as it grows more.

resources/sass/_blocks.scss

index 5b219b9ae33ae77ad24e73d4ddd676421316608a..75adf12aacde34a99b795c7278320f6ebdfee62b 100644 (file)
 .sticky-sidebar {
   position: sticky;
   top: $-m;
 .sticky-sidebar {
   position: sticky;
   top: $-m;
+  max-height: calc(100vh - #{$-m});
+  overflow-y: auto;
 }
 }