A platform for community discussion. Free, open, simple.
UX: Use dvh for sidebar height (#21278)
David Taylorf5fa1ef77195
diff --git a/app/assets/stylesheets/common/base/sidebar.scss b/app/assets/stylesheets/common/base/sidebar.scssindex a7a40195f08..7f4cade60ee 100644--- a/app/assets/stylesheets/common/base/sidebar.scss+++ b/app/assets/stylesheets/common/base/sidebar.scss@@ -31,13 +31,21 @@@include unselectable;+ // 100dvh with fallback for old browsers+ --100dvh: 100vh;+ @supports (height: 100dvh) {+ --100dvh: 100dvh;+ }++ height: calc(var(--100dvh) - var(--header-offset, 0px));+.footer-nav-ipad & {top: calc(var(--header-offset) + var(--footer-nav-height));height: calc(- 100vh - var(--header-offset, 0px) - var(--footer-nav-height, 0px)+ var(--100dvh) - var(--header-offset, 0px) - var(--footer-nav-height, 0px));}- height: calc(100vh - var(--header-offset, 0px));+align-self: start;overflow-y: auto;