From ccefa61b3d875dea2679ecb17b6584b8853b0eba Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 28 Oct 2025 23:01:51 +0100 Subject: [PATCH] Update virtual-machines.tsx --- AppImage/components/virtual-machines.tsx | 86 +++++++++++++----------- 1 file changed, 48 insertions(+), 38 deletions(-) diff --git a/AppImage/components/virtual-machines.tsx b/AppImage/components/virtual-machines.tsx index 1efa13d..d79859d 100644 --- a/AppImage/components/virtual-machines.tsx +++ b/AppImage/components/virtual-machines.tsx @@ -945,63 +945,73 @@ export function VirtualMachines() { className="sm:hidden p-4 rounded-lg border border-black/10 dark:border-white/10 bg-black/5 dark:bg-white/5 transition-colors cursor-pointer" onClick={() => handleVMClick(vm)} > -
+
+ {/* Status icon */} {vm.status === "running" ? ( ) : ( )} + {/* Type badge */} {getTypeBadge(vm.type).label} - {/* Name and ID */} + {/* Name and ID - takes remaining space */}
{vm.name}
ID: {vm.vmid}
+
-
- {/* CPU icon with percentage */} -
- {vm.status === "running" && ( - {cpuPercent}% - )} - -
+ {/* Second row: Resource usage icons with percentages */} +
+ {/* CPU icon with percentage */} +
+ {vm.status === "running" && ( + {cpuPercent}% + )} + +
- {/* Memory icon with percentage */} -
- {vm.status === "running" && ( - {memPercent}% - )} - -
+ {/* Memory icon with percentage */} +
+ {vm.status === "running" && ( + {memPercent}% + )} + +
- {/* Disk icon with percentage */} -
- {vm.status === "running" && ( - {diskPercent}% - )} - -
+ {/* Disk icon with percentage */} +
+ {vm.status === "running" && ( + {diskPercent}% + )} + +
+ + {/* Network icon */} +
+ -- +
+ {/* */}
)