Skip to content

Self-hosted homelab infrastructure visualizer — interactive network diagram with live status monitoring

fix: clear node height when properties change to prevent overflow outside border

Pouzord6a7b062f477
diff --git a/frontend/src/stores/canvasStore.ts b/frontend/src/stores/canvasStore.ts
index 116d60f..9df76ad 100644
--- a/frontend/src/stores/canvasStore.ts
+++ b/frontend/src/stores/canvasStore.ts
@@ -191,6 +191,10 @@ export const useCanvasStore = create<CanvasState>((set) => ({
let nodes = state.nodes.map((n) => {
if (n.id !== id) return n
const updated: Node<NodeData> = { ...n, data: { ...n.data, ...data } }
+ // When properties change, clear stored height so the node auto-sizes to fit new content
+ if ('properties' in data && n.data.type !== 'proxmox' && n.data.type !== 'groupRect') {
+ updated.height = undefined
+ }
if ('parent_id' in data) {
const newParentId = data.parent_id ?? undefined
if (!newParentId && n.parentId) {