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:
Adam Moussa 2026-05-22 17:29:20 -04:00
parent 6de4bafec4
commit edb557fb23

View file

@ -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',