diff --git a/AppImage/components/virtual-machines.tsx b/AppImage/components/virtual-machines.tsx index d79859d..1efa13d 100644 --- a/AppImage/components/virtual-machines.tsx +++ b/AppImage/components/virtual-machines.tsx @@ -945,73 +945,63 @@ 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 - takes remaining space */} + {/* Name and ID */}
{vm.name}
ID: {vm.vmid}
-
- {/* Second row: Resource usage icons with percentages */} -
- {/* CPU icon with percentage */} -
- {vm.status === "running" && ( - {cpuPercent}% - )} - -
+
+ {/* 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}% - )} - -
- - {/* Network icon */} -
- -- - + {/* Disk icon with percentage */} +
+ {vm.status === "running" && ( + {diskPercent}% + )} + +
- {/* */}
)