فهرست منبع

Fixes #3995: Navbar scroll when overflowing

Saria Hajjar 6 سال پیش
والد
کامیت
09faaff849
2فایلهای تغییر یافته به همراه13 افزوده شده و 0 حذف شده
  1. 1 0
      docs/release-notes/version-2.7.md
  2. 12 0
      netbox/project-static/css/base.css

+ 1 - 0
docs/release-notes/version-2.7.md

@@ -8,6 +8,7 @@
 ## Bug Fixes
 
 * [#3983](https://github.com/netbox-community/netbox/issues/3983) - Permit the creation of multiple unnamed devices
+* [#3995](https://github.com/netbox-community/netbox/issues/3995) - Fixed overflowing dropdown menus becoming unreachable
 
 ---
 

+ 12 - 0
netbox/project-static/css/base.css

@@ -62,8 +62,20 @@ footer p {
     }
 }
 
+/* Scroll the drop-down menus at or above 768px wide to match bootstrap's behavior for hiding dropdown menus */
+@media (min-width: 768px) {
+    .navbar-nav>li>ul {
+        max-height: 80vh;
+        overflow-y: scroll;
+    }
+}
+
 /* Collapse the nav menu on displays less than 980px wide */
 @media (max-width: 979px) {
+    #navbar {
+        max-height: 80vh;
+        overflow-y: scroll;
+    }
     .navbar-header {
         float: none;
     }