Skip to content

Commit

Permalink
fix the dropdown menu
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyYe committed Feb 24, 2024
1 parent 941e9a0 commit 6a10250
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ export const Navbar = () => {
<div className="navbar bg-base-100">
<div className="navbar-start gap-2">
<div className="dropdown">
<div role="button" className="btn lg:hidden">
<div tabIndex={0} role="button" className="btn lg:hidden">
<MenuIcon />
</div>
{isClient && credentials && siteConfig.navItems ?
<ul className="menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow rounded-box w-52">
{isClient && credentials ?
<ul tabIndex={0} className="menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow rounded-box w-52 bg-white">
{
siteConfig.navItems.map((item) => (
<li key={item.label}>
Expand Down

0 comments on commit 6a10250

Please sign in to comment.