From eba74d91b3bfa6b3646112777f10deeb33cb7f61 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 17 Oct 2025 10:20:21 +0800 Subject: [PATCH] style: Optimize the overview page style (#10670) --- frontend/src/views/home/status/index.vue | 161 +++++++++-------------- 1 file changed, 63 insertions(+), 98 deletions(-) diff --git a/frontend/src/views/home/status/index.vue b/frontend/src/views/home/status/index.vue index 53f530bf4..0de049973 100644 --- a/frontend/src/views/home/status/index.vue +++ b/frontend/src/views/home/status/index.vue @@ -77,75 +77,53 @@ - + {{ $t('home.mem') }}: - - - {{ $t('home.total') }}: {{ computeSize(currentInfo.memoryTotal) }} - - - - - {{ $t('home.used') }}: {{ computeSize(currentInfo.memoryUsed) }} - - - - - {{ $t('home.free') }}: {{ computeSize(currentInfo.memoryFree) }} - - - - - {{ $t('home.shard') }}: {{ computeSize(currentInfo.memoryShard) }} - - - - - {{ $t('home.cache') }}: {{ computeSize(currentInfo.memoryCache) }} - - - - - {{ $t('home.available') }}: {{ computeSize(currentInfo.memoryAvailable) }} - - - - - {{ $t('home.percent') }}: {{ formatNumber(currentInfo.memoryUsedPercent) }}% - - + + {{ $t('home.total') }}: {{ computeSize(currentInfo.memoryTotal) }} + + + {{ $t('home.used') }}: {{ computeSize(currentInfo.memoryUsed) }} + + + {{ $t('home.free') }}: {{ computeSize(currentInfo.memoryFree) }} + + + {{ $t('home.shard') }}: {{ computeSize(currentInfo.memoryShard) }} + + + {{ $t('home.cache') }}: {{ computeSize(currentInfo.memoryCache) }} + + + {{ $t('home.available') }}: {{ computeSize(currentInfo.memoryAvailable) }} + + + {{ $t('home.percent') }}: {{ formatNumber(currentInfo.memoryUsedPercent) }}% + {{ $t('home.swapMem') }}: - - - {{ $t('home.total') }}: {{ computeSize(currentInfo.swapMemoryTotal) }} - - - - - {{ $t('home.used') }}: {{ computeSize(currentInfo.swapMemoryUsed) }} - - - - - {{ $t('home.free') }}: {{ computeSize(currentInfo.swapMemoryAvailable) }} - - - - - {{ $t('home.percent') }}: {{ formatNumber(currentInfo.swapMemoryUsedPercent) }}% - - + + {{ $t('home.total') }}: {{ computeSize(currentInfo.swapMemoryTotal) }} + + + {{ $t('home.used') }}: {{ computeSize(currentInfo.swapMemoryUsed) }} + + + {{ $t('home.free') }}: {{ computeSize(currentInfo.swapMemoryAvailable) }} + + + {{ $t('home.percent') }}: {{ formatNumber(currentInfo.swapMemoryUsedPercent) }}% +