diff --git a/src/apps/dashboard/AppLayout.tsx b/src/apps/dashboard/AppLayout.tsx index 3067a1f5e..15aae6512 100644 --- a/src/apps/dashboard/AppLayout.tsx +++ b/src/apps/dashboard/AppLayout.tsx @@ -43,11 +43,11 @@ const AppLayout: FC = ({ sx={{ width: { xs: '100%', - sm: `calc(100% - ${DRAWER_WIDTH}px)` + sm: isDrawerAvailable ? `calc(100% - ${DRAWER_WIDTH}px)` : '100%' }, ml: { xs: 0, - sm: `${DRAWER_WIDTH}px` + sm: isDrawerAvailable ? DRAWER_WIDTH : 0 } }} >