Przeglądaj źródła

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

Jeremy Stretch 2 dni temu
rodzic
commit
7b9b5fed3d

Plik diff jest za duży
+ 0 - 0
netbox/project-static/dist/netbox.css


+ 7 - 0
netbox/project-static/styles/transitional/_navigation.scss

@@ -1,5 +1,12 @@
 // Navbar and light theme styling
 // Navbar and light theme styling
 .navbar-vertical.navbar-expand-lg {
 .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
   // Render the <button> menu headings identically to the surrounding nav links
   .navbar-collapse .nav-item.dropdown > button.nav-link {
   .navbar-collapse .nav-item.dropdown > button.nav-link {
     width: 100%;
     width: 100%;

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików