From 46b5f4a5e248676159b0c38305ed68e099bd623a Mon Sep 17 00:00:00 2001 From: ji ruo <79234113+RuoJi6@users.noreply.github.com> Date: Fri, 30 Oct 2026 01:53:05 +0800 Subject: [PATCH] fix: show resource metrics as progress bars --- web/src/app/(main)/dashboard/page.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/web/src/app/(main)/dashboard/page.tsx b/web/src/app/(main)/dashboard/page.tsx index 63b9dc6..f2b5092 100644 --- a/web/src/app/(main)/dashboard/page.tsx +++ b/web/src/app/(main)/dashboard/page.tsx @@ -116,12 +116,16 @@ function SystemResourceStatus({ metrics }: { metrics: SystemMetrics | null }) { [HardDriveIcon, "磁盘", metrics.data_disk.percent], ] as const; return ( -
- 容器资源 +
+ 容器资源 {items.map(([Icon, label, value]) => ( - - +
+
+ + {value.toFixed(1)}% +
+ +
))}
);