Skip to content

Commit

Permalink
πŸ”§ fix: header, search modal z-index μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
dongree committed Dec 4, 2024
1 parent 1184a00 commit 72c03e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion FE/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function Header() {
};

return (
<header className='fixed left-0 top-0 z-50 h-[60px] w-full bg-white'>
<header className='fixed left-0 top-0 z-20 h-[60px] w-full bg-white'>
<div className='mx-auto flex h-full max-w-[1280px] items-center justify-between px-8'>
<Link to={'/'} className='flex items-center gap-2'>
<picture>
Expand Down
6 changes: 3 additions & 3 deletions FE/src/components/Search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ export default function SearchModal() {
const showSearchResults = searchInput && !isSearching && data;

return (
<>
<div className='z-30'>
<Overlay onClick={() => toggleSearchModal()} />
<section
className={`${searchInput.length ? 'h-[520px]' : ''} fixed left-1/2 top-3 z-20 w-[640px] -translate-x-1/2 rounded-2xl bg-white shadow-xl`}
className={`${searchInput.length ? 'h-[520px]' : ''} fixed left-1/2 top-3 w-[640px] -translate-x-1/2 rounded-2xl bg-white shadow-xl`}
>
<div
className={'absolute left-0 right-0 top-0 rounded-t-2xl bg-white p-3'}
Expand Down Expand Up @@ -91,6 +91,6 @@ export default function SearchModal() {
)}
</div>
</section>
</>
</div>
);
}

0 comments on commit 72c03e4

Please sign in to comment.