From 4a0c3e3db5202d7e6a2a8d940f2bda391cf172d1 Mon Sep 17 00:00:00 2001 From: Midwich Date: Tue, 5 May 2026 12:18:27 +0400 Subject: [PATCH] fix(webui): add Noto Sans font support for Cyrillic text The WebUI only loaded Noto Sans SC (Simplified Chinese), which lacks Cyrillic glyphs. Russian text fell back to system sans-serif, causing poor rendering depending on the OS. Changes: - Load Noto Sans (regular) from Google Fonts alongside Noto Sans SC - Add 'Noto Sans' at the END of $cjk-sans-fallback (after CJK fonts) so Chinese text still renders with system CJK fonts first, while Cyrillic text falls through to Noto Sans. This ensures both Chinese and Cyrillic text render correctly. --- dashboard/index.html | 2 +- dashboard/src/scss/_variables.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/index.html b/dashboard/index.html index 5ffa2c1178..684f9b47eb 100644 --- a/dashboard/index.html +++ b/dashboard/index.html @@ -9,7 +9,7 @@ diff --git a/dashboard/src/scss/_variables.scss b/dashboard/src/scss/_variables.scss index 64a6d03da5..5e5bfe97ab 100644 --- a/dashboard/src/scss/_variables.scss +++ b/dashboard/src/scss/_variables.scss @@ -9,7 +9,7 @@ $color-pack: false; // Global font size and border radius $font-size-root: 1rem; $border-radius-root: 8px; -$cjk-sans-fallback: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Microsoft YaHei' !default; +$cjk-sans-fallback: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans' !default; $cjk-mono-fallback: 'PingFang SC', 'PingFang TC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Microsoft YaHei' !default; $code-text-color: #111827 !default;