Skip to content

Commit 4d59779

Browse files
committed
refactor: update layout to use min-height and enable vertical scrolling for main content.
1 parent 660612b commit 4d59779

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/components/Layout/Layout.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
.mainContent {
99
flex: 1;
1010
display: flex;
11-
overflow: hidden;
11+
flex-direction: column;
12+
overflow-y: auto;
1213
position: relative;
1314
background-color: var(--color-bg-primary);
1415
}

src/components/Layout/Layout.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ export function Layout({ children, moduleNav }: LayoutProps) {
1717
return (
1818
<div className={styles.appContainer}>
1919
<Header moduleNav={moduleNav} />
20-
<main className={styles.mainContent}>{children}</main>
21-
<Footer />
20+
<main className={styles.mainContent}>
21+
{children}
22+
<Footer />
23+
</main>
2224
</div>
2325
);
2426
}
2527

28+

0 commit comments

Comments
 (0)