Fixes #3995: Navbar scroll when overflowing

This commit is contained in:
Saria Hajjar 2020-01-23 20:34:06 +00:00
parent 2445d1896b
commit 09faaff849
2 changed files with 13 additions and 0 deletions

View File

@ -8,6 +8,7 @@
## Bug Fixes ## Bug Fixes
* [#3983](https://github.com/netbox-community/netbox/issues/3983) - Permit the creation of multiple unnamed devices * [#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
--- ---

View File

@ -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 */ /* Collapse the nav menu on displays less than 980px wide */
@media (max-width: 979px) { @media (max-width: 979px) {
#navbar {
max-height: 80vh;
overflow-y: scroll;
}
.navbar-header { .navbar-header {
float: none; float: none;
} }