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 */} +
+ -- +
+ {/* */}
)