fix: scrollable nav (#42600)

* fix: scrollable nav

Modify the drop down menu to be scrollable.

* fix: account for really small screens
pull/43186/head
Nicholas Carrigan (he/him) 2021-08-11 10:17:21 -07:00 committed by GitHub
parent 5f57667c7d
commit c8ec196dbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -233,6 +233,14 @@
display: inherit;
text-align: left;
margin-top: calc(-1 * var(--header-height));
max-height: calc(100vh - var(--header-height));
overflow-y: scroll;
-ms-overflow-style: none;
scrollbar-width: none;
}
.display-menu::-webkit-scrollbar {
display: none;
}
.toggle-button-nav {
@ -323,6 +331,10 @@
.ais-Hits {
min-width: calc(100% - 30px);
}
.display-menu {
max-height: calc(100vh - var(--header-height) * 2);
}
}
@media (max-width: 455px) {