fix(desktop): font names that include whitespace must be quoted (#3674)

* fix(desktop): font names that include whitespace must be quoted

* update
This commit is contained in:
Konv Suu
2025-05-07 15:39:41 +08:00
committed by GitHub
parent 196c94ac1c
commit 734611052b
@@ -23,8 +23,9 @@ const useUISettingSync = () => {
useInsertionEffect(() => {
const root = document.documentElement
// https://developer.mozilla.org/en-US/docs/Web/CSS/font-family#valid_family_names
const fontCss = `"${setting.uiFontFamily}", system-ui, sans-serif`
const fontCss = `${setting.uiFontFamily},"SN Pro", system-ui, sans-serif`
Object.assign(root.style, {
fontFamily: fontCss,
})