fix(dashboard): fix network graph collapse by setting explicit min-height and add error visibility
This commit is contained in:
1 parent
cba02a43b7
commit
06dc67e9d0
1 file changed
+3
-2
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
/* Graph Panel */
|
/* Graph Panel */
|
||||||
.graph-panel { flex: 2; }
|
.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 */
|
||||||
.right-column { flex: 1; display: flex; flex-direction: column; gap: 20px; }
|
.right-column { flex: 1; display: flex; flex-direction: column; gap: 20px; }
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
network = new vis.Network(container, graphData, options);
|
network = new vis.Network(container, graphData, options);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} 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 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in new issue
Block a user