feat(web): add font size setting

- Add Settings > Display > Font Size selector (80/90/100/110/120%)
- Persist preference (hapi-font-scale) and apply globally via --app-font-scale
- Normalize main UI typography to match Settings
This commit is contained in:
therainisme
2026-01-29 16:25:47 +08:00
committed by weishu
parent 0ceda16160
commit efbe4f8d90
15 changed files with 232 additions and 22 deletions
+7 -1
View File
@@ -42,6 +42,8 @@
--app-badge-error-bg: rgba(239, 68, 68, 0.18);
--app-badge-error-text: #b91c1c;
--app-badge-error-border: rgba(239, 68, 68, 0.3);
--app-font-scale: 1;
}
[data-theme="dark"] {
@@ -87,6 +89,10 @@
--app-badge-error-border: rgba(248, 113, 113, 0.35);
}
html {
font-size: calc(100% * var(--app-font-scale));
}
html,
body {
height: 100vh;
@@ -126,7 +132,7 @@ body {
margin: 0;
padding: 0.5rem;
background-color: transparent !important;
font-size: 0.75rem;
font-size: 0.875rem;
}
.aui-md-codeblock pre.shiki code {