Uodate AppImage

This commit is contained in:
MacRimi
2025-10-21 17:33:53 +02:00
parent f20e46dee0
commit 8eca511a53
2 changed files with 18 additions and 4 deletions

View File

@@ -373,7 +373,7 @@ export function MetricsView({ vmid, vmName, vmType, onBack }: MetricsViewProps)
</div> </div>
{/* Scrollable Content with all charts */} {/* Scrollable Content with all charts */}
<div className="flex-1 overflow-y-auto p-6">{renderAllCharts()}</div> <div className="flex-1 overflow-y-auto p-6 min-h-0">{renderAllCharts()}</div>
</div> </div>
) )
} }

View File

@@ -845,6 +845,21 @@ export function VirtualMachines() {
/> />
</div> </div>
{/* Disk */}
<div>
<div className="text-xs text-muted-foreground mb-2">Disk</div>
<div
className={`text-2xl font-semibold mb-2 ${getUsageColor((selectedVM.disk / selectedVM.maxdisk) * 100)}`}
>
{(selectedVM.disk / 1024 ** 3).toFixed(1)} /{" "}
{(selectedVM.maxdisk / 1024 ** 3).toFixed(1)} GB
</div>
<Progress
value={(selectedVM.disk / selectedVM.maxdisk) * 100}
className={`h-2 ${getModalProgressColor((selectedVM.disk / selectedVM.maxdisk) * 100)}`}
/>
</div>
{/* Disk I/O */} {/* Disk I/O */}
<div> <div>
<div className="text-xs text-muted-foreground mb-2">Disk I/O</div> <div className="text-xs text-muted-foreground mb-2">Disk I/O</div>
@@ -875,9 +890,8 @@ export function VirtualMachines() {
</div> </div>
</div> </div>
{/* OS Icon / VM Icon */} <div className="flex items-center justify-center">
<div className="flex items-center justify-center col-span-2 lg:col-span-1"> {getOSIcon(vmDetails?.config?.ostype, selectedVM.type)}
{getOSIcon(vmDetails?.config?.ostype, selectedVM.type)} {/* undeclared variable fix */}
</div> </div>
</div> </div>
</CardContent> </CardContent>