mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 11:36:17 +00:00
Uodate AppImage
This commit is contained in:
@@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user