Skip to content

Commit

Permalink
feat: add hidden class to screen dim in lg screens
Browse files Browse the repository at this point in the history
  • Loading branch information
moonbamijam committed Feb 12, 2024
1 parent e291543 commit 6ec7ed6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const Header = () => {
</header>
{isMenuActive && (
<>
<nav ref={ dropdown } id="main" className={`fixed top-[60px] w-full z-[100] flex lg:hidden flex-col px-[30px] md:px-[50px] xl:px-[100px] 2xl:px-[200px] pt-[20px] pb-[40px] gap-2 ${ scrollHeaderBg } backdrop-blur-sm`}>
<nav ref={ dropdown } id="main" className={`fixed top-[60px] w-full z-[100] flex lg:hidden flex-col px-[30px] md:px-[50px] xl:px-[100px] 2xl:px-[200px] pt-[20px] pb-[40px] gap-2 ${ scrollHeaderBg }`}>
<Button href={"/"} state={ isHomeDropdownActive } onClick={ toggleHomeDropdown } icon={ isHomeDropdownActive? <FaCaretDown /> : <FaCaretRight /> } name={"home"} />
{isHomeDropdownActive && (
<>
Expand Down Expand Up @@ -201,7 +201,7 @@ const Header = () => {
<SubButton onClick={ () => handleScrollIntoView('#favorites') } name={"current"} />
</>)}
</nav>
<div className="screen-dim w-screen h-screen fixed z-[99] bg-black opacity-80 dark:opacity-70"></div>
<div className="screen-dim w-screen h-screen fixed z-[99] bg-black opacity-80 dark:opacity-70 lg:hidden"></div>
</>
)}
</>
Expand Down

0 comments on commit 6ec7ed6

Please sign in to comment.