Skip to content

Commit

Permalink
chore: minor UI change for vertical navigation resizing.
Browse files Browse the repository at this point in the history
Signed-off-by: Nkeiruka <[email protected]>
  • Loading branch information
Kxiru committed Jun 17, 2024
1 parent be48794 commit 267317f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const Navigation: FC = () => {
</div>
</div>
<div className="p-panel__content">
<div className="p-side-navigation--icons is-dark">
<div className="p-side-navigation--icons is-dark sidenav-top-container">
<ul className="p-side-navigation__list sidenav-top-ul">
{isAuthenticated && (
<>
Expand Down Expand Up @@ -440,6 +440,8 @@ const Navigation: FC = () => {
</>
)}
</ul>
</div>
<div className="p-side-navigation--icons is-dark sidenav-bottom-container">
<ul
className={classnames(
"p-side-navigation__list sidenav-bottom-ul",
Expand All @@ -448,6 +450,7 @@ const Navigation: FC = () => {
},
)}
>
<hr className="is-dark navigation-hr" />
{isAuthenticated && (
<li className="p-side-navigation__item">
<div
Expand Down
9 changes: 9 additions & 0 deletions src/sass/_pattern_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,19 @@

.sidenav-bottom-ul {
bottom: $spv--x-large;
height: fit-content;
position: absolute;
width: 15rem;
}

.sidenav-top-container {
height: 50vh;
overflow: scroll;
-ms-overflow-style: none; /* Internet Explorer 10+ */
overflow-x: hidden;
scrollbar-width: none; /* Firefox */
}

.p-side-navigation__item--title {
white-space: nowrap;
}
Expand Down

0 comments on commit 267317f

Please sign in to comment.