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:
@@ -35,13 +35,14 @@
|
||||
.data-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: var(--fs-md);
|
||||
font-size: var(--fs-base-sm);
|
||||
}
|
||||
|
||||
.data-table th,
|
||||
.data-table td {
|
||||
padding: 5px 4px;
|
||||
padding: calc(5px * var(--ui-font-scale, 1)) calc(4px * var(--ui-font-scale, 1));
|
||||
text-align: left;
|
||||
font-size: var(--fs-base-sm);
|
||||
border-bottom: 1px solid var(--border-hairline);
|
||||
white-space: nowrap;
|
||||
}
|
||||
@@ -78,7 +79,7 @@
|
||||
.step-model-cell {
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
max-width: var(--step-model-max-w, 176px);
|
||||
max-width: calc(var(--step-model-max-w, 176px) * var(--ui-font-scale, 1));
|
||||
min-width: 0;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
@@ -133,8 +134,9 @@
|
||||
|
||||
.steps-inline-scope-select .select-trigger,
|
||||
.steps-inline-model-select .select-trigger {
|
||||
height: 22px;
|
||||
padding: 0 6px;
|
||||
min-height: calc(22px * var(--ui-font-scale, 1));
|
||||
height: auto;
|
||||
padding: 2px 6px;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
@@ -320,8 +322,9 @@
|
||||
}
|
||||
|
||||
.sstep-fit-model-select .select-trigger {
|
||||
height: 22px;
|
||||
padding: 0 6px;
|
||||
min-height: calc(22px * var(--ui-font-scale, 1));
|
||||
height: auto;
|
||||
padding: 2px 6px;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
@@ -377,7 +380,7 @@
|
||||
.sstep-axis-label {
|
||||
fill: var(--text-muted);
|
||||
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
|
||||
font-size: 9.5px;
|
||||
font-size: var(--fs-2xs);
|
||||
user-select: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
@@ -485,7 +488,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 11px;
|
||||
font-size: var(--fs-md);
|
||||
pointer-events: none;
|
||||
z-index: 2;
|
||||
}
|
||||
@@ -496,7 +499,7 @@
|
||||
flex-wrap: wrap;
|
||||
gap: 4px 10px;
|
||||
padding-top: 2px;
|
||||
font-size: 10px;
|
||||
font-size: var(--fs-xs);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
@@ -535,7 +538,7 @@
|
||||
flex-wrap: wrap;
|
||||
gap: 4px 8px;
|
||||
padding-top: 2px;
|
||||
font-size: 10px;
|
||||
font-size: var(--fs-xs);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
@@ -595,7 +598,7 @@
|
||||
}
|
||||
|
||||
.sstep-fit-delta {
|
||||
font-size: 10px;
|
||||
font-size: var(--fs-xs);
|
||||
}
|
||||
|
||||
/* --- 4. 极简高密度模型总览列表 (Minimalist Session Model Summary Cards) --- */
|
||||
|
||||
Reference in New Issue
Block a user