Skip to content

Commit

Permalink
Less wider submenu
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Mar 28, 2024
1 parent 49fa48b commit 671d2c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/nav-menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,7 @@
.sparkle-icon {
animation: sparkle-icon 0.3s ease-in-out infinite alternate;
}

.nav-submenu {
max-width: 14em;
}
2 changes: 2 additions & 0 deletions src/components/nav-menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ function NavMenu(props) {
)}
{lists?.length > 0 ? (
<SubMenu
menuClassName="nav-submenu"
overflow="auto"
gap={-8}
label={
Expand Down Expand Up @@ -244,6 +245,7 @@ function NavMenu(props) {
<Icon icon="bookmark" size="l" /> <span>Bookmarks</span>
</MenuLink>
<SubMenu
menuClassName="nav-submenu"
overflow="auto"
gap={-8}
label={
Expand Down

0 comments on commit 671d2c9

Please sign in to comment.