Skip to content

Commit

Permalink
fixed sticky header
Browse files Browse the repository at this point in the history
  • Loading branch information
liauw-media committed Mar 27, 2024
1 parent 625fb14 commit a985aa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ body {
}

#topbar {
z-index: 1000;
max-width: 460px;
}
#content {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navbar/topbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { NavMobile } from "./nav-mobile";

export const Topbar = () => {
return (
<div className="w-full bg-glass/30 shadow-default backdrop-blur-md flex justify-between px-3 py-2 max-[500px]:h-12 min-[500px]:h-[56px]" id="topbar">
<div className="fixed top-0 w-full bg-glass/30 shadow-default backdrop-blur-md flex justify-between px-0 py-2 max-[500px]:h-12 min-[500px]:h-[56px]" id="topbar">
<nav className="container flex items-center justify-between w-full py-1 lg:py-2">
<div className="flex justify-between w-full">
<NavMobile />
Expand Down

0 comments on commit a985aa8

Please sign in to comment.