From 657fa0214288fc76c490945b5470911bb88ee004 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Mon, 29 Sep 2025 18:11:33 +0000 Subject: [PATCH] Tighten dashboard table spacing --- .../src/components/Dashboard/Dashboard.tsx | 42 +++++++++---------- .../src/components/Dashboard/GuestRow.tsx | 22 +++++----- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/frontend-modern/src/components/Dashboard/Dashboard.tsx b/frontend-modern/src/components/Dashboard/Dashboard.tsx index 2348ea7c2..913a0c7c8 100644 --- a/frontend-modern/src/components/Dashboard/Dashboard.tsx +++ b/frontend-modern/src/components/Dashboard/Dashboard.tsx @@ -546,7 +546,7 @@ export function Dashboard(props: DashboardProps) { } }} > - +
- +
- + - + - + - + {nodeVMs()} - + {nodeContainers()} - + {formatUptime(node.uptime)} @@ -722,7 +722,7 @@ export function Dashboard(props: DashboardProps) { handleSort('name')} onKeyDown={(e) => e.key === 'Enter' && handleSort('name')} tabindex="0" @@ -732,61 +732,61 @@ export function Dashboard(props: DashboardProps) { Name {sortKey() === 'name' && (sortDirection() === 'asc' ? '▲' : '▼')} handleSort('type')} > Type {sortKey() === 'type' && (sortDirection() === 'asc' ? '▲' : '▼')} handleSort('vmid')} > VMID {sortKey() === 'vmid' && (sortDirection() === 'asc' ? '▲' : '▼')} handleSort('uptime')} > Uptime {sortKey() === 'uptime' && (sortDirection() === 'asc' ? '▲' : '▼')} handleSort('cpu')} > CPU {sortKey() === 'cpu' && (sortDirection() === 'asc' ? '▲' : '▼')} handleSort('memory')} > Memory {sortKey() === 'memory' && (sortDirection() === 'asc' ? '▲' : '▼')} handleSort('disk')} > Disk {sortKey() === 'disk' && (sortDirection() === 'asc' ? '▲' : '▼')} handleSort('diskRead')} > Disk Read {sortKey() === 'diskRead' && (sortDirection() === 'asc' ? '▲' : '▼')} handleSort('diskWrite')} > Disk Write {sortKey() === 'diskWrite' && (sortDirection() === 'asc' ? '▲' : '▼')} handleSort('networkIn')} > Net In {sortKey() === 'networkIn' && (sortDirection() === 'asc' ? '▲' : '▼')} handleSort('networkOut')} > Net Out {sortKey() === 'networkOut' && (sortDirection() === 'asc' ? '▲' : '▼')} @@ -799,7 +799,7 @@ export function Dashboard(props: DashboardProps) { <> - +
- + }> diff --git a/frontend-modern/src/components/Dashboard/GuestRow.tsx b/frontend-modern/src/components/Dashboard/GuestRow.tsx index 2615e4359..dfb46c38a 100644 --- a/frontend-modern/src/components/Dashboard/GuestRow.tsx +++ b/frontend-modern/src/components/Dashboard/GuestRow.tsx @@ -97,7 +97,7 @@ export function GuestRow(props: GuestRowProps) { // Get first cell styling const firstCellClass = createMemo(() => { - const base = 'p-1 px-2 whitespace-nowrap relative'; + const base = 'py-0.5 px-2 whitespace-nowrap relative'; // Add extra padding when alert is present for visual spacing const padding = props.alertStyles?.hasAlert ? 'pl-4' : ''; return `${base} ${padding}`; @@ -150,7 +150,7 @@ export function GuestRow(props: GuestRowProps) { {/* Type */} - + {/* VMID */} - + {props.guest.vmid} {/* Uptime */} - @@ -176,7 +176,7 @@ export function GuestRow(props: GuestRowProps) { {/* CPU */} - + {/* Memory */} - + {/* Disk */} - + 0 && diskPercent() !== -1} fallback={ @@ -218,18 +218,18 @@ export function GuestRow(props: GuestRowProps) { {/* Disk I/O */} - + - + {/* Network I/O */} - + - +