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:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user