Merge pull request #2999 from wbamberg/stop-scroll-overflow

Prevent sidebar scroll from overflowing
This commit is contained in:
wbamberg 2021-02-09 08:43:11 -08:00 committed by Richard van der Hoff
commit d5f975edaf

View file

@ -43,6 +43,7 @@ Custom SCSS for the Matrix spec
/* Styles for the sidebar nav */ /* Styles for the sidebar nav */
.td-sidebar-nav { .td-sidebar-nav {
scroll-behavior: smooth; scroll-behavior: smooth;
overscroll-behavior: contain;
/* This overrides calc(100vh - 10rem);, which gives us a blank space at the bottom of the sidebar */ /* This overrides calc(100vh - 10rem);, which gives us a blank space at the bottom of the sidebar */
max-height: calc(100vh - 6rem); max-height: calc(100vh - 6rem);