Updated sticky header logic.
This commit is contained in:
1 parent
45c13da262
commit
f062cdbed2
8 files changed
+31
-24
No files matched your search
@@ -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