Skip to content

Commit 453d3e1

Browse files
committed
Update DashboardLayout styles: adjust drawer height and margin to account for navbar and footer, and enable scrolling for overflow content
1 parent 43ef22b commit 453d3e1

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

32 KB
Binary file not shown.

planventure-client/src/layouts/DashboardLayout.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ const DashboardLayout = ({ children }) => {
120120
display: { xs: 'block', sm: 'none' },
121121
'& .MuiDrawer-paper': {
122122
boxSizing: 'border-box',
123-
width: DRAWER_WIDTH
123+
width: DRAWER_WIDTH,
124+
height: 'calc(100vh - 56px)', // Subtract footer height
125+
marginTop: '64px' // Account for navbar
124126
},
125127
}}
126128
>
@@ -136,7 +138,9 @@ const DashboardLayout = ({ children }) => {
136138
boxSizing: 'border-box',
137139
width: DRAWER_WIDTH,
138140
borderRight: '1px solid rgba(0, 0, 0, 0.12)',
139-
marginTop: '64px'
141+
marginTop: '64px', // Navbar height
142+
height: 'calc(100vh - 78px - 58px)', // Subtract navbar (64px) and footer (56px) heights
143+
overflowY: 'auto' // Add scrolling for overflow content
140144
},
141145
}}
142146
open

0 commit comments

Comments
 (0)