From c0896fbc9489e2bd33f1b92d314021e104713499 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Sun, 17 May 2026 15:23:57 +0100 Subject: [PATCH] Constrain Proxmox disk sub-rows to a tighter column span Previous version spanned from Disk all the way to Cluster, which gave the per-disk bar far more room than it needs and visually fragmented the table grid. Cap the colspan to Disk plus two right neighbours so the sub-row sits in a sensible ~400px region, and fix the bar at w-20 instead of letting it stretch. Cts/Cluster columns now stay aligned with the host row above. --- .../features/proxmox/ProxmoxNodesTable.tsx | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx index 61f3e97bd1..7fb5172ead 100644 --- a/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx +++ b/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx @@ -165,7 +165,11 @@ const ProxmoxHostDiskSubRow: Component<{ const diskIdx = () => subProps.visibleColumns.findIndex((c) => c.id === 'disk'); const leadingColumns = () => subProps.visibleColumns.slice(0, diskIdx()); - const trailingSpan = () => subProps.visibleColumns.length - diskIdx(); + const remainingAfterDisk = () => subProps.visibleColumns.length - diskIdx(); + // Span the Disk column plus up to two right neighbours so the row has room + // for label/bar/percent/size without bleeding all the way to Cluster. + const detailSpan = () => Math.min(remainingAfterDisk(), 3); + const trailingColumns = () => subProps.visibleColumns.slice(diskIdx() + detailSpan()); return ( @@ -176,12 +180,15 @@ const ProxmoxHostDiskSubRow: Component<{ -
+
└ - {label()} -
+ {label()} +
+ + {(column) => ( +   + )} + ); };