Skip to content

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

fix height issues

Guy Ben-Aharonc39174de64f8
diff --git a/src/pages/editor-page/editor-page.tsx b/src/pages/editor-page/editor-page.tsx
index dce5114d..4bb6cddf 100644
--- a/src/pages/editor-page/editor-page.tsx
+++ b/src/pages/editor-page/editor-page.tsx
@@ -11,10 +11,10 @@ import { Canvas } from './canvas/canvas';
export const EditorPage: React.FC = () => {
return (
- <section className="bg-background h-screen w-screen">
+ <section className="bg-background h-screen w-screen flex flex-col">
<TopNavbar />
<Toolbar />
- <ResizablePanelGroup direction="horizontal" className="h-full">
+ <ResizablePanelGroup direction="horizontal">
<ResizablePanel defaultSize={25} minSize={25} maxSize={99}>
<SidePanel />
</ResizablePanel>
diff --git a/src/pages/editor-page/side-panel/side-panel.tsx b/src/pages/editor-page/side-panel/side-panel.tsx
index 75752cb5..291ab9f7 100644
--- a/src/pages/editor-page/side-panel/side-panel.tsx
+++ b/src/pages/editor-page/side-panel/side-panel.tsx
@@ -15,7 +15,7 @@ export const SidePanel: React.FC<SidePanelProps> = () => {
<aside className="flex h-full flex-col">
<div className="flex justify-center border-b">
<Select defaultValue="tables">
- <SelectTrigger className="mt-1 border-none shadow-none focus:border-transparent focus:ring-0">
+ <SelectTrigger className="border-none shadow-none focus:border-transparent focus:ring-0">
<SelectValue />
</SelectTrigger>
<SelectContent>
@@ -28,6 +28,7 @@ export const SidePanel: React.FC<SidePanelProps> = () => {
</SelectContent>
</Select>
</div>
+ {/* <div className="flex flex-1 bg-foreground">aa</div> */}
</aside>
);
};
diff --git a/src/pages/editor-page/side-panel/tables-section/tables-section.tsx b/src/pages/editor-page/side-panel/tables-section/tables-section.tsx
new file mode 100644
index 00000000..202a544d
--- /dev/null
+++ b/src/pages/editor-page/side-panel/tables-section/tables-section.tsx
@@ -0,0 +1,7 @@
+import React from 'react';
+
+export interface TablesSectionProps {}
+
+export const TablesSection: React.FC<TablesSectionProps> = () => {
+ return <section className="flex h-full"></section>;
+};