From 0b0ffa63179039358682ccede1ccb6f83be3bfae Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Fri, 29 Aug 2025 06:50:34 +0000 Subject: [PATCH] fix: resolve table column misalignment in flat list view addresses #370 - changed from Show component to class-based hiding for the Node column to ensure proper table structure is maintained in both grouped and flat views. The Node column now always exists in the DOM but is hidden with CSS when not needed, preventing column shift issues. --- .../src/components/Dashboard/Dashboard.tsx | 14 ++++++-------- .../src/components/Dashboard/GuestRow.tsx | 8 +++----- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/frontend-modern/src/components/Dashboard/Dashboard.tsx b/frontend-modern/src/components/Dashboard/Dashboard.tsx index 3a3919c13..a14666035 100644 --- a/frontend-modern/src/components/Dashboard/Dashboard.tsx +++ b/frontend-modern/src/components/Dashboard/Dashboard.tsx @@ -694,14 +694,12 @@ export function Dashboard(props: DashboardProps) { > VMID {sortKey() === 'vmid' && (sortDirection() === 'asc' ? '▲' : '▼')} - - handleSort('node')} - > - Node {sortKey() === 'node' && (sortDirection() === 'asc' ? '▲' : '▼')} - - + handleSort('node')} + > + Node {sortKey() === 'node' && (sortDirection() === 'asc' ? '▲' : '▼')} + handleSort('uptime')} diff --git a/frontend-modern/src/components/Dashboard/GuestRow.tsx b/frontend-modern/src/components/Dashboard/GuestRow.tsx index 2d92565fa..1c26575d6 100644 --- a/frontend-modern/src/components/Dashboard/GuestRow.tsx +++ b/frontend-modern/src/components/Dashboard/GuestRow.tsx @@ -156,11 +156,9 @@ export function GuestRow(props: GuestRowProps) { {/* Node (optional) */} - - - {props.guest.node} - - + + {props.guest.node} + {/* Uptime */}