From 29c97ae501d35c55964512d81f78ef515252ef9f Mon Sep 17 00:00:00 2001 From: Pouzor Date: Thu, 23 Apr 2026 01:34:44 +0200 Subject: [PATCH] fix: align status dot to top and restore gap in ProxmoxGroupNode header --- frontend/src/components/canvas/nodes/BaseNode.tsx | 4 ++-- .../src/components/canvas/nodes/ProxmoxGroupNode.tsx | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/canvas/nodes/BaseNode.tsx b/frontend/src/components/canvas/nodes/BaseNode.tsx index cdfd59b..1414e68 100644 --- a/frontend/src/components/canvas/nodes/BaseNode.tsx +++ b/frontend/src/components/canvas/nodes/BaseNode.tsx @@ -77,7 +77,7 @@ export function BaseNode({ id, data, selected, icon: typeIcon, width, height }: {/* Main row */} -
+
{/* Icon */}
diff --git a/frontend/src/components/canvas/nodes/ProxmoxGroupNode.tsx b/frontend/src/components/canvas/nodes/ProxmoxGroupNode.tsx index 8cd4dc5..8f4cc72 100644 --- a/frontend/src/components/canvas/nodes/ProxmoxGroupNode.tsx +++ b/frontend/src/components/canvas/nodes/ProxmoxGroupNode.tsx @@ -5,6 +5,8 @@ import type { NodeData } from '@/types' import { resolveNodeColors } from '@/utils/nodeColors' import { resolveNodeIcon } from '@/utils/nodeIcons' import { resolvePropertyIcon } from '@/utils/propertyIcons' +import { useCanvasStore } from '@/stores/canvasStore' +import { maskIp, splitIps } from '@/utils/maskIp' import { useThemeStore } from '@/stores/themeStore' import { THEMES } from '@/utils/themes' import { BaseNode } from './BaseNode' @@ -13,6 +15,7 @@ export function ProxmoxGroupNode(props: NodeProps>) { const { data, selected } = props const activeTheme = useThemeStore((s) => s.activeTheme) + const hideIp = useCanvasStore((s) => s.hideIp) const theme = THEMES[activeTheme] const colors = resolveNodeColors(data, activeTheme) @@ -71,7 +74,7 @@ export function ProxmoxGroupNode(props: NodeProps>) { > {/* Header bar */}
>) { > {data.label} - {data.ip && ( + {data.ip && splitIps(data.ip).map((ip) => ( - {data.ip} + {hideIp ? maskIp(ip) : ip} - )} + ))}
{/* Status dot */}