瀏覽代碼

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

Jeremy Stretch 2 天之前
父節點
當前提交
d1467ed512
共有 2 個文件被更改,包括 7 次插入0 次删除
  1. 0 0
      netbox/project-static/dist/netbox.css
  2. 7 0
      netbox/project-static/styles/transitional/_navigation.scss

文件差異過大導致無法顯示
+ 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-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%;

部分文件因文件數量過多而無法顯示