mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
fix(panel): make font-scale visibly resize all tables/charts and raise readable base sizes
- Raise base typography tokens (data tables to 12.5px, body/titles to 13px) above CJK 12px floor and widen lg (1.14x) / xl (1.28x) scale steps - Replace 19 hardcoded px font-size rules across tables, charts, tooltips, heatmaps, and monthly bars with scalable --fs-* tokens - Bind [data-font-scale] directly in CSS and mirror onto Shadow DOM overlay panels without colliding with :host defaults - Convert rigid control/row pixel heights to scalable min-heights and scale floating panel base widths on lg/xl
This commit is contained in:
@@ -16,14 +16,17 @@ async function bootstrapApp(mountTarget = document.getElementById('app-root')) {
|
||||
const appInstance = App();
|
||||
mountTarget.appendChild(appInstance.el);
|
||||
|
||||
const syncDocAppearance = (settings) => {
|
||||
setI18nLanguage(settings?.language);
|
||||
if (typeof document !== 'undefined' && document.documentElement) {
|
||||
applyAppearanceToRoot(document.documentElement, settings, { includeFontScale: true });
|
||||
}
|
||||
};
|
||||
syncDocAppearance(telemetryStore.getState().telemetry?.settings);
|
||||
|
||||
const unsubAppearance = telemetryStore.subscribe(
|
||||
(st) => st.telemetry?.settings,
|
||||
(settings) => {
|
||||
setI18nLanguage(settings?.language);
|
||||
if (typeof document !== 'undefined' && document.documentElement) {
|
||||
applyAppearanceToRoot(document.documentElement, settings, { includeFontScale: true });
|
||||
}
|
||||
}
|
||||
syncDocAppearance
|
||||
);
|
||||
|
||||
const stopPolling = startAsyncTelemetryLoop(2000);
|
||||
|
||||
Reference in New Issue
Block a user