Skip to content

Database diagrams editor that allows you to visualize and design your DB with a single query.

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

Guy Ben-Aharonc5e0ea6fa401
diff --git a/src/pages/editor-page/editor-desktop-layout.tsx b/src/pages/editor-page/editor-desktop-layout.tsx
index 21deaa21..6960bcc8 100644
--- a/src/pages/editor-page/editor-desktop-layout.tsx
+++ b/src/pages/editor-page/editor-desktop-layout.tsx
@@ -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>