From 1a0306343a9060bfbf158c72b74f4b76f51e72ab Mon Sep 17 00:00:00 2001 From: Midwich Date: Fri, 15 May 2026 09:36:37 +0400 Subject: [PATCH] fix(webui): add Noto Sans font support for Cyrillic text (#8015) 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 5ffa2c117..684f9b47e 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 64a6d03da..5e5bfe97a 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;