mirror of
https://github.com/Sea-Haven-Industries/proposal-system.git
synced 2026-09-30 10:03:14 +00:00
Fix layout double-offset from persistent drawer
The sidebar Drawer reserved width in the flex container AND the main content had margin-left for the same width, pushing content 440px right. Removed the redundant margin-left and added a width transition to the Drawer for smooth toggle animation.
This commit is contained in:
parent
6de4bafec4
commit
edb557fb23
1 changed files with 1 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ export default function Sidebar() {
|
|||
sx={{
|
||||
width: open ? DRAWER_WIDTH : 0,
|
||||
flexShrink: 0,
|
||||
transition: 'width 250ms ease',
|
||||
'& .MuiDrawer-paper': {
|
||||
width: DRAWER_WIDTH,
|
||||
boxSizing: 'border-box',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue