minor: simplify DiagramPageLayout structure by removing unnecessary divs

This commit is contained in:
dayuan.jiang
2025-03-26 06:43:27 +00:00
parent 5c00c00584
commit 09dc466b2a

View File

@@ -10,23 +10,17 @@ 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"> <DrawIoEmbed
<div className="absolute inset-0"> ref={drawioRef}
<div className="w-full h-full"> onExport={handleDiagramExport}
<DrawIoEmbed urlParameters={{
ref={drawioRef} spin: true,
onExport={handleDiagramExport} libraries: false,
urlParameters={{ saveAndExit: false,
spin: true, noExitBtn: true,
libraries: false, }}
saveAndExit: false, />
noExitBtn: true,
}}
/>
</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>