fix(drawer): set fix min size (#429)

This commit is contained in:
Guy Ben-Aharon
2024-11-20 18:45:32 +02:00
committed by GitHub
parent ab07da0b03
commit c5e0ea6fa4

View File

@@ -23,11 +23,11 @@ export const EditorDesktopLayout: React.FC<EditorDesktopLayoutProps> = ({
return (
<ResizablePanelGroup direction="horizontal">
<ResizablePanel
defaultSize={isXl ? 25 : isLg ? 35 : 50}
minSize={isXl ? 25 : isLg ? 35 : 50}
defaultSize={25}
minSize={25}
maxSize={isSidePanelShowed ? 99 : 0}
// eslint-disable-next-line
className="transition-[flex-grow] duration-200"
className="transition-[flex-grow] duration-200 min-w-[350px]"
>
<SidePanel />
</ResizablePanel>