This commit is contained in:
1ilit
2023-09-19 15:48:38 +03:00
parent ef09ded98c
commit 2a0c5071a4
5 changed files with 20 additions and 17 deletions

View File

@@ -32,10 +32,10 @@ export default function Editor(props) {
};
return (
<>
<div className="h-[100vh] overflow-hidden">
<ControlPanel layout={layout} setLayout={setLayout} />
<div
className={`flex h-full`}
className={`flex h-[calc(100vh-123.93px)]`}
onMouseUp={() => setResize(false)}
onMouseMove={dragHandler}
>
@@ -56,6 +56,7 @@ export default function Editor(props) {
/>
)}
<Canvas
width={window.innerWidth-width-8}
tables={tables}
setTables={setTables}
code={code}
@@ -68,6 +69,6 @@ export default function Editor(props) {
</DndProvider>
{layout.services && <Sidebar />}
</div>
</>
</div>
);
}