diff --git a/webui/src/theme/base.css b/webui/src/theme/base.css index f6c5239..c642dc2 100644 --- a/webui/src/theme/base.css +++ b/webui/src/theme/base.css @@ -132,6 +132,11 @@ body::-webkit-scrollbar, font-variant-numeric: tabular-nums; } +/* 中英混排的数值:用页面字体 + 等宽数字,避免中文落到等宽栈的 CJK 兜底字体 */ +.tabular { + font-variant-numeric: tabular-nums; +} + /* ── 表面:MD3 用色调层级而非阴影表达层级 ─────────────────────────── */ .section { background-color: var(--md-sys-color-surface-container-low); diff --git a/webui/src/theme/tokens.css b/webui/src/theme/tokens.css index cfa759f..a82eaa3 100644 --- a/webui/src/theme/tokens.css +++ b/webui/src/theme/tokens.css @@ -66,7 +66,10 @@ --md-sys-typescale-label-small-tracking: 0.0313em; --md-sys-typescale-font: 'Geist', system-ui, -apple-system, sans-serif; - --md-sys-typescale-font-mono: 'Geist Mono', ui-monospace, monospace; + /* 等宽栈要带上 CJK 无衬线兜底:Geist Mono 无中文字形,直接落到通用 monospace + 会在 Windows 上显示为宋体 */ + --md-sys-typescale-font-mono: + 'Geist Mono', ui-monospace, 'Microsoft YaHei', 'PingFang SC', 'Noto Sans CJK SC', monospace; /* @material/web 组件内部的字体族取自 ref typeface(默认回退 Roboto), 必须显式指向项目字体,否则组件内文字与页面字体不一致 */ diff --git a/webui/src/views/StatusView.vue b/webui/src/views/StatusView.vue index 175b34a..a7b4e40 100644 --- a/webui/src/views/StatusView.vue +++ b/webui/src/views/StatusView.vue @@ -83,7 +83,7 @@ async function confirmLow() {