diff --git a/src/components/Drawer.tsx b/src/components/Drawer.tsx index bbc36782..fc0af9fb 100644 --- a/src/components/Drawer.tsx +++ b/src/components/Drawer.tsx @@ -16,7 +16,6 @@ interface DrawerProps { onBackdropClick?: () => void; closeOnBackdropClick?: boolean; expandedContent?: ReactNode; - expandedWidth?: string; } type DrawerClassName = { @@ -25,6 +24,7 @@ type DrawerClassName = { drawerSide?: string; drawerOverlay?: string; drawerSidebarContent?: string; + drawerExpandedContent?: string; }; const Drawer = ({ @@ -39,7 +39,6 @@ const Drawer = ({ onBackdropClick, closeOnBackdropClick = true, expandedContent, - expandedWidth = 'w-[400px]', }: DrawerProps) => { const getDrawerClassNames = (): DrawerClassName => { const baseClassNames = { @@ -56,6 +55,9 @@ const Drawer = ({ ? 'w-full lg:min-w-[600px] lg:max-w-[600px]' : 'w-full max-w-[300px] lg:w-[300px]'; } + if (className?.drawerSidebarContent) { + return ''; + } return 'w-full sm:min-w-120 sm:w-fit'; }; @@ -174,7 +176,7 @@ const Drawer = ({
diff --git a/src/components/pages/production/uniformity/UniformityPageWrapper.tsx b/src/components/pages/production/uniformity/UniformityPageWrapper.tsx index 07f313b6..5c8f1313 100644 --- a/src/components/pages/production/uniformity/UniformityPageWrapper.tsx +++ b/src/components/pages/production/uniformity/UniformityPageWrapper.tsx @@ -58,7 +58,10 @@ export default function UniformityPageWrapper({ zIndex='99999' sidebarContent={isOpen ?
{children}
: null} expandedContent={expandedDrawerOpen ? expandedDrawerContent : null} - expandedWidth='w-[500px]' + className={{ + drawerSidebarContent: 'w-[446px]', + drawerExpandedContent: 'w-[446px]', + }} /> );