Fix blank portal: add root element heights, use dagre for graph layout

- Set explicit height on html/body/#root so React Flow container renders
- Replace @dagrejs/dagre (broken CJS dynamic require) with dagre v0.8.5
- Hierarchical top-down layout with dagre, arrow markers on edges
- Move React Flow controls to top-right to avoid floating button overlap
This commit is contained in:
2026-02-02 19:20:53 +01:00
parent fc075a377b
commit d1e3adcb3c
5 changed files with 101 additions and 29 deletions

View File

@@ -1,12 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" style="height:100%">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cortex Portal</title>
</head>
<body class="bg-gray-950 text-gray-100">
<div id="root"></div>
<body class="bg-gray-950 text-gray-100" style="margin:0;height:100%;overflow:hidden">
<div id="root" style="height:100%"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>