diff --git a/frontend-modern/src/components/shared/NodeSummaryTable.tsx b/frontend-modern/src/components/shared/NodeSummaryTable.tsx index 4a6912402..1cfa36ea7 100644 --- a/frontend-modern/src/components/shared/NodeSummaryTable.tsx +++ b/frontend-modern/src/components/shared/NodeSummaryTable.tsx @@ -94,40 +94,28 @@ export const NodeSummaryTable: Component = (props) => { } }; - // Calculate table width based on tab - const tableWidth = () => { - // Base columns: Node(200) + Status(80) + Uptime(100) + CPU(200) + Memory(200) + Disk(200) = 980px - const baseWidth = 980; - switch (props.currentTab) { - case 'dashboard': return baseWidth + 160; // + VMs(80) + Containers(80) - case 'storage': return baseWidth + 80; // + Storage(80) - case 'backups': return baseWidth + 80; // + Backups(80) - default: return baseWidth; - } - }; - // Don't return null - let the table render even if empty // This prevents the table from disappearing on refresh while data loads return (
-
- +
+
- - - - - - + + + + {(header) => ( - + )} @@ -192,7 +180,7 @@ export const NodeSummaryTable: Component = (props) => { }`} onClick={() => props.onNodeClick(nodeId, item.type)} > - - - - -
+ {props.currentTab === 'backups' ? 'Node / PBS' : 'Node'} StatusUptimeCPUMemory + StatusUptimeCPUMemory {props.currentTab === 'backups' && props.pbsInstances ? 'Storage / Disk' : 'Disk'} {header}{header}
+ +
= (props) => {
+ = (props) => { type="cpu" /> + = (props) => { type="memory" /> +