소스 검색

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%;

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.