fix: unify font-family usage across GUI

- Remove hardcoded body font-family from index.scss, use MUI theme dt.font_family instead
- Extract monospace font stack to shared MONACO_FONT_FAMILY constant in utils/font-family.ts
- Add platform check for twemoji mozilla in ip-info-card.tsx
- Consolidate 5 Monaco Editor font-family declarations into single constant
This commit is contained in:
Tunglies
2026-09-04 09:57:24 +08:00
parent a640010bc3
commit 836199cfe2
9 changed files with 38 additions and 23 deletions
+22
View File
@@ -0,0 +1,22 @@
import getSystem from './get-system'
const OS = getSystem()
const MONACO_FONT_FAMILY_BASE = [
'Fira Code',
'JetBrains Mono',
'Roboto Mono',
'"Source Code Pro"',
'Consolas',
'Menlo',
'Monaco',
'monospace',
'"Courier New"',
'"Apple Color Emoji"',
]
if (OS === 'windows') {
MONACO_FONT_FAMILY_BASE.push('twemoji mozilla')
}
export const MONACO_FONT_FAMILY = MONACO_FONT_FAMILY_BASE.join(', ')