From 1ec342db0c1e58620dc5d11b9c54dbcdf62c3ea8 Mon Sep 17 00:00:00 2001 From: OG T Date: Thu, 2 Apr 2026 13:56:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E9=A6=96=E5=B8=AD=E6=9E=B6?= =?UTF-8?q?=E6=A7=8B=E5=B8=AB=E5=AF=A9=E6=9F=A5=E4=BF=AE=E5=BE=A9=20(82/10?= =?UTF-8?q?0=20=E2=86=92=20Pass)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 字體遷移遺漏: host-grid (2處), sidebar (1處) → var(--font-body) - time-series-chart tick → var(--font-mono) (圖表軸標籤保留等寬意圖) - i18n key 重複: 移除 incident.anomaly, 保留 incident.card.anomaly - 全站 inline fontFamily: 'monospace' 歸零 Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/web/messages/en.json | 3 +-- apps/web/messages/zh-TW.json | 3 +-- apps/web/src/components/charts/time-series-chart.tsx | 2 +- apps/web/src/components/infra/host-grid.tsx | 4 ++-- apps/web/src/components/layout/sidebar.tsx | 2 +- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/apps/web/messages/en.json b/apps/web/messages/en.json index b2affdec..5f84ed07 100644 --- a/apps/web/messages/en.json +++ b/apps/web/messages/en.json @@ -308,8 +308,7 @@ "authorize": "Authorize", "reject": "Reject", "anomaly": "anomaly" - }, - "anomaly": "anomaly" + } }, "status": { "idle": "Idle", diff --git a/apps/web/messages/zh-TW.json b/apps/web/messages/zh-TW.json index 09d70909..5b75299b 100644 --- a/apps/web/messages/zh-TW.json +++ b/apps/web/messages/zh-TW.json @@ -309,8 +309,7 @@ "authorize": "授權", "reject": "拒絕", "anomaly": "異常" - }, - "anomaly": "異常" + } }, "status": { "idle": "待命", diff --git a/apps/web/src/components/charts/time-series-chart.tsx b/apps/web/src/components/charts/time-series-chart.tsx index 3ceeb030..2094e871 100644 --- a/apps/web/src/components/charts/time-series-chart.tsx +++ b/apps/web/src/components/charts/time-series-chart.tsx @@ -166,7 +166,7 @@ export function TimeSeriesChart({ `${value}${unit ? unit : ''}`} /> diff --git a/apps/web/src/components/infra/host-grid.tsx b/apps/web/src/components/infra/host-grid.tsx index 00b92102..90212f3a 100644 --- a/apps/web/src/components/infra/host-grid.tsx +++ b/apps/web/src/components/infra/host-grid.tsx @@ -64,7 +64,7 @@ export function HostGrid({ hosts }: HostGridProps) {
- + {host.hostname}
@@ -90,7 +90,7 @@ export function HostGrid({ hosts }: HostGridProps) { background: svc.healthy ? '#22C55E' : '#cc2200', flexShrink: 0, }} /> - + {svc.name}
diff --git a/apps/web/src/components/layout/sidebar.tsx b/apps/web/src/components/layout/sidebar.tsx index f36dfb82..18ccc0ef 100644 --- a/apps/web/src/components/layout/sidebar.tsx +++ b/apps/web/src/components/layout/sidebar.tsx @@ -236,7 +236,7 @@ export function Sidebar({ letterSpacing: '1.5px', textTransform: 'uppercase' as const, padding: '8px 12px 3px', - fontFamily: 'monospace', + fontFamily: 'var(--font-body), monospace', }}> {tSection(section.sectionKey)}