Get proper nav bar width

The drawer can potentially have a border, which would have been ignored, thus, detecting an incorrect width
This commit is contained in:
schroda
2024-10-19 15:19:23 +02:00
parent 68aea3403f
commit 39dea49203

View File

@@ -113,9 +113,11 @@ export const DesktopSideBar = ({ navBarItems }: { navBarItems: NavbarItem[] }) =
zIndex: (theme) => theme.zIndex.drawer - 1,
},
}}
PaperProps={{
ref,
}}
>
<Box
ref={ref}
sx={{
minWidth: isCollapsed ? MIN_WIDTH_COLLAPSED : MIN_WIDTH_EXTENDED,
maxWidth: isCollapsed ? MAX_WIDTH_COLLAPSED : MAX_WIDTH_EXTENDED,