fix(dashboard): fix network graph collapse by setting explicit min-height and add error visibility

This commit is contained in:
Riz Ashraf committed 2026-09-12 09:45:15 +01:00
1 parent cba02a43b7
commit 06dc67e9d0
1 file changed
+3 -2
+3 -2
View File
@@ -15,7 +15,7 @@
/* Graph Panel */
.graph-panel { flex: 2; }
#network-container { flex: 1; border: 1px solid #bdc3c7; border-radius: 4px; background: #fafafa; }
#network-container { flex: 1; min-height: 400px; position: relative; border: 1px solid #bdc3c7; border-radius: 4px; background: #fafafa; }
/* Right Column */
.right-column { flex: 1; display: flex; flex-direction: column; gap: 20px; }
@@ -119,7 +119,7 @@
network = new vis.Network(container, graphData, options);
}
} catch (err) {
console.error("Failed to load graph", err);
console.error("Failed to load graph", err); document.getElementById("network-container").innerHTML = "<div style=\"color:red;padding:20px;\">Error loading graph: " + err.message + "</div>";
}
}
@@ -204,3 +204,4 @@