Skip to content

Commit c632fdb

Browse files
committed
fix: make overflow for content easier
1 parent adf848e commit c632fdb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/layouts/main/MainLayout/MainLayout.styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const LayoutMaster = styled(BaseLayout)`
66
`;
77

88
export const LayoutMain = styled(BaseLayout)`
9-
height: fit-content;
9+
height: 100vh;
1010
@media only screen and ${media.md} {
1111
margin-left: 80px;
1212
}

src/components/layouts/main/MainLayout/MainLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const MainLayout: React.FC = () => {
7171
<Header toggleSider={toggleSider} isSiderOpened={!siderCollapsed} isTwoColumnsLayout={isTwoColumnsLayout} />
7272
</MainHeader>
7373
<MainContent
74-
style={isDesktop ? { overflowY: 'hidden' } : { overflowY: 'auto' }}
74+
style={isDesktop ? { overflowY: 'auto' } : { overflowY: 'auto' }}
7575
id="main-content"
7676
$isTwoColumnsLayout={isTwoColumnsLayout}
7777
$isDesktop={isDesktop}

0 commit comments

Comments
 (0)