Skip to content

Commit

Permalink
style: Dropdown menu maximum height display (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
HashCookie authored Jul 28, 2024
1 parent 7f9cf67 commit 4577082
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NavbarItems/Casdoor.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function DefaultNavbarItemDesktop({
}
function DefaultNavbarItemMobile({className, isDropdownItem, ...props}) {
return (
<li className="menu__list-item">
<li className="menu__list-item dropdown__menu">
<NavbarNavLink className={clsx("menu__link", className)} {...props} />
</li>
);
Expand Down
5 changes: 5 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,11 @@ div[class^="announcementBar_"] {
font-size: 14px;
}

.dropdown__menu {
overflow: hidden;
max-height: 100vh;
}

/* doc sidebar */
.menu__link {
font-size: 14px;
Expand Down

0 comments on commit 4577082

Please sign in to comment.