Scrollable nav (#497)

* scrollable nav

* rename
This commit is contained in:
Igor
2021-05-15 17:42:07 +03:00
committed by GitHub
parent 5e3e3e188a
commit 0578e38eee
2 changed files with 12 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ const Nav = () => {
position="sticky"
alignSelf="flex-start"
display={["none", null, null, "block"]}
className="scrollableNavigation"
>
{navItems.map(({ code, name }) => {
const isActive = navItem?.code === code;

View File

@@ -176,3 +176,14 @@ For React Datepicker
color: var(--text);
outline: none;
}
.scrollableNavigation {
max-height: calc(100vh - 1rem);
overflow-y: auto;
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
.scrollableNavigation::-webkit-scrollbar {
display: none;
}