Updated sticky header logic.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -6,11 +6,10 @@
|
||||
|
||||
.nav {
|
||||
grid-row: 1 / 3;
|
||||
height: 100vh;
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
.body {
|
||||
grid-area: 1 / 2;
|
||||
overflow: auto;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user