feat(frontend): add font size, namespace UI prefs per user

Build on the font picker with three additions per user feedback:

- Font size selector (Small / Normal / Large) wired through a new
  --app-font-scale CSS variable; the body font-size and every
  --td-font-size-* token are wrapped in calc(... * var(--app-font-scale))
  so TDesign components scale together with the body
- localStorage keys for theme, font family, mono font and font size are
  now namespaced as WeKnora_${userId}_${key}; falls back to "anon" before
  login. Each user keeps their own preferences in the same browser
- auth store calls reloadFontFromStorage / reloadThemeFromStorage on
  setUser (when the active user changes) and in logout, so a user switch
  swaps the applied preferences without a reload

https://claude.ai/code/session_01S1FVPf4jRfWXkTSnpMmMp7
This commit is contained in:
Claude
2026-05-02 08:21:37 +00:00
committed by lyingbug
parent f140c12518
commit bafcbd5e5f
10 changed files with 190 additions and 34 deletions
+7
View File
@@ -2393,6 +2393,13 @@ export default {
consolas: 'Consolas',
monospace: 'Стандартный моноширинный',
},
fontSize: 'Размер шрифта',
fontSizeDescription: 'Регулирует общий размер текста в интерфейсе',
size: {
small: 'Маленький',
normal: 'Обычный',
large: 'Крупный',
},
},
platform: {
subtitle: 'Корпоративная платформа интеллектуального поиска документов',