Fixes #22573: Remove persistent scrollbar on nav menu in Chrome (#22601)

This commit is contained in:
Jeremy Stretch 2026-07-06 13:36:37 -04:00 committed by GitHub
parent a9da727ffc
commit 2c74c0c2a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,12 @@
// Navbar and light theme styling
.navbar-vertical.navbar-expand-lg {
// Tabler forces `overflow-y: scroll` on the vertical navbar, which renders a
// permanent scrollbar in Chromium browsers even when scrolling isn't needed.
// Use `auto` so the scrollbar only appears when the menu overflows.
@include media-breakpoint-up(lg) {
overflow-y: auto;
}
// Render the <button> menu headings identically to the surrounding nav links
.navbar-collapse .nav-item.dropdown > button.nav-link {
width: 100%;