From 81192057e62e1d4ee6c9f05108513f3f9245592d Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Fri, 5 Jan 2024 17:10:38 -0500 Subject: [PATCH] Fix header size for metadata editor --- src/apps/dashboard/AppLayout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } }} >