From 237c3c0a8976b62da15ec2e4e77cf8ea5155b943 Mon Sep 17 00:00:00 2001 From: tbphp Date: Tue, 18 Aug 2026 18:42:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(home):=20=E6=8F=90=E5=8D=87=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E6=9D=BF=E5=9D=97=E5=8C=BA=E5=88=86=E5=BA=A6=E5=B9=B6?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=91=8A=E8=AD=A6=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增 HomeSectionHeading 统一分区标题(圆点+加粗),板块间距由 22px 拉到 36px 并加分隔线,板块内间距收紧,解决各板块视觉上粘连难辨的问题; 告警行改为按 tone 上底色与图标,替代原来仅靠 6px 圆点区分严重度; 统一分隔线只由板块起始元素画上边线,避免与相邻元素的边框叠加成两条。 --- .../features/home/CurrentAccessKeyCard.vue | 3 +- web/src/features/home/GatewayConnection.vue | 38 ++++------ web/src/features/home/HomeAttention.vue | 71 +++++++++++-------- web/src/features/home/HomeSectionHeading.vue | 59 +++++++++++++++ web/src/features/home/HomeSpend.vue | 51 ++++--------- web/src/features/home/HomeSummary.vue | 7 +- web/src/i18n/locales/en-US/core.ts | 1 + web/src/i18n/locales/ja-JP/core.ts | 1 + web/src/i18n/locales/zh-CN/core.ts | 1 + 9 files changed, 137 insertions(+), 95 deletions(-) create mode 100644 web/src/features/home/HomeSectionHeading.vue diff --git a/web/src/features/home/CurrentAccessKeyCard.vue b/web/src/features/home/CurrentAccessKeyCard.vue index cf3bc41d..82a54b79 100644 --- a/web/src/features/home/CurrentAccessKeyCard.vue +++ b/web/src/features/home/CurrentAccessKeyCard.vue @@ -95,7 +95,8 @@ const models = computed(() => .current-access-key { display: grid; gap: 14px; - border-block: 1px solid var(--color-border-subtle); + /* 同上:只留上边线,避免和下一个板块的上边线撞成两条。 */ + border-top: 1px solid var(--color-border-subtle); background: color-mix(in srgb, var(--color-action-soft) 28%, transparent); padding: 18px 0; } diff --git a/web/src/features/home/GatewayConnection.vue b/web/src/features/home/GatewayConnection.vue index 027f30ad..62921c29 100644 --- a/web/src/features/home/GatewayConnection.vue +++ b/web/src/features/home/GatewayConnection.vue @@ -1,5 +1,5 @@ + + + + diff --git a/web/src/features/home/HomeSpend.vue b/web/src/features/home/HomeSpend.vue index 58ed2298..5576e06b 100644 --- a/web/src/features/home/HomeSpend.vue +++ b/web/src/features/home/HomeSpend.vue @@ -1,5 +1,4 @@