Updated sticky header logic.

This commit is contained in:
Mike Cao 2023-02-09 08:22:36 -08:00
parent 45c13da262
commit f062cdbed2
8 changed files with 31 additions and 24 deletions

View file

@ -19,7 +19,7 @@ export default function AppLayout({ title, children }) {
<div className={styles.nav}>
<NavBar />
</div>
<div className={styles.body}>
<div className={styles.body} id="layout-body">
<Container>
<main>{children}</main>
</Container>

View file

@ -6,11 +6,10 @@
.nav {
grid-row: 1 / 3;
height: 100vh;
position: fixed;
}
.body {
grid-area: 1 / 2;
overflow: auto;
height: 100vh;
}