From c13387bc70cd1cffd16fe47938c7cd8ab991f11d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=98=AD?= <81747598+lan-yonghui@users.noreply.github.com> Date: Fri, 27 Dec 2024 14:01:02 +0800 Subject: [PATCH] style: Optimize the display of status cards on the overview page (#7562) * style: Optimize the display of status cards on the overview page --- frontend/src/lang/modules/zh.ts | 2 +- frontend/src/styles/element-dark.scss | 2 +- frontend/src/views/home/status/index.vue | 253 +++++------- .../src/views/login/components/login-form.vue | 5 +- frontend/src/views/setting/panel/index.vue | 364 ++++++++++-------- 5 files changed, 296 insertions(+), 330 deletions(-) diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 4a1a58d61..8ac88cb41 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -369,7 +369,7 @@ const message = { core: '物理核心', logicCore: '逻辑核心', - loadAverage: '最近 {0} 分钟平均负载', + loadAverage: '最近 1 分钟平均负载 | 最近 {n} 分钟平均负载', load: '负载', mount: '挂载点', fileSystem: '文件系统', diff --git a/frontend/src/styles/element-dark.scss b/frontend/src/styles/element-dark.scss index b37b044b4..f2fc13ade 100644 --- a/frontend/src/styles/element-dark.scss +++ b/frontend/src/styles/element-dark.scss @@ -165,7 +165,7 @@ html.dark { } .el-loading-mask { - background-color: #5b5e6a75; + background-color: rgba(0, 0, 0, 0.8); } .el-input { diff --git a/frontend/src/views/home/status/index.vue b/frontend/src/views/home/status/index.vue index 0ff18d0c3..287d26cb8 100644 --- a/frontend/src/views/home/status/index.vue +++ b/frontend/src/views/home/status/index.vue @@ -1,5 +1,5 @@