mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-03 23:02:31 +08:00
minor: simplify DiagramPageLayout structure by removing unnecessary divs
This commit is contained in:
@@ -10,10 +10,7 @@ function DiagramPageLayout({ children }: { children: React.ReactNode }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex h-screen bg-gray-100">
|
<div className="flex h-screen bg-gray-100">
|
||||||
<div className="w-2/3 p-1 h-full">
|
<div className="w-2/3 p-1 h-full relative">
|
||||||
<div className="h-full relative">
|
|
||||||
<div className="absolute inset-0">
|
|
||||||
<div className="w-full h-full">
|
|
||||||
<DrawIoEmbed
|
<DrawIoEmbed
|
||||||
ref={drawioRef}
|
ref={drawioRef}
|
||||||
onExport={handleDiagramExport}
|
onExport={handleDiagramExport}
|
||||||
@@ -25,9 +22,6 @@ function DiagramPageLayout({ children }: { children: React.ReactNode }) {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="w-1/3 h-full p-1">{children}</div>
|
<div className="w-1/3 h-full p-1">{children}</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user