Skip to content

Commit

Permalink
Make header fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramirisu committed Feb 24, 2024
1 parent f17340c commit 23bd950
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/main/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const Main = () => {
backgroundPositionY: reduceWithDelimiter(bgPositionY, ','),
transition: 'all 0.25s ease-out 0s',
width: '100%',
paddingTop: '64px', // for fixed header
}}
>
<Outlet />
Expand Down
3 changes: 3 additions & 0 deletions src/modules/main/header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ const Header = () => {
height: 'auto',
backgroundColor: 'crimson',
padding: '0',
position: 'fixed', // for fixed header
top: '0', // for fixed header
zIndex: '1', // for fixed header
}}
>
<Flex
Expand Down

0 comments on commit 23bd950

Please sign in to comment.