fix(theme): reflow KPI grid at narrow zoom widths

This commit is contained in:
Joseph Doherty
2026-11-13 17:22:58 -05:00
parent 5d2d9530ba
commit 075cf47fc2
3 changed files with 9 additions and 3 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ before `</body>`. No Bootstrap collapse bundle is required.
The canonical card grid keeps its 290px preferred minimum while allowing a card to The canonical card grid keeps its 290px preferred minimum while allowing a card to
shrink to the available column width. This prevents clipping/overflow in narrow shrink to the available column width. This prevents clipping/overflow in narrow
reflow and zoomed layouts. Desktop geometry, colors, fonts and component APIs retain reflow and zoomed layouts. Below 320px effective viewport width, the KPI grid
uses one column so labels and large totals retain their available width. Desktop geometry, colors, fonts and component APIs retain
the 1.0.0 contract. Consumers should adopt one exact patch version together; do not the 1.0.0 contract. Consumers should adopt one exact patch version together; do not
copy per-application grid fixes or repack the immutable 1.0.0 artifacts. copy per-application grid fixes or repack the immutable 1.0.0 artifacts.
@@ -253,6 +253,7 @@ a:hover { color: var(--accent-deep); text-decoration: underline; }
} }
@media (max-width: 1100px) { .agg-grid { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 1100px) { .agg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .agg-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 620px) { .agg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 319px) { .agg-grid { grid-template-columns: 1fr; } }
.agg-card { .agg-card {
background: var(--card); background: var(--card);
@@ -6,8 +6,12 @@ at an effective195px viewport its document grew to310px. The raw current-browser
measurements are retained in `shared-grid-before.json`. Authored card-grid consumers measurements are retained in `shared-grid-before.json`. Authored card-grid consumers
also exist in HistorianGateway and OtOpcUa, so one canonical fix is required. also exist in HistorianGateway and OtOpcUa, so one canonical fix is required.
Choose compatible patch **1.0.1**. The sole visual rule change uses Choose compatible patch **1.0.1**. The card-grid rule uses
`minmax(min(290px, 100%), 1fr)` in canonical theme.css. Normal widths stay unchanged; `minmax(min(290px, 100%), 1fr)` in canonical theme.css. The first complete runtime matrix also reproduced KPI-grid overflow at effective
195px width (216px with short totals, 248px with 500-instance totals). A shared
319px breakpoint now uses one KPI column; this does not affect widths >=320px.
The first candidate was never published and is superseded before acceptance.
Normal widths stay unchanged;
no token, palette, font, component API or domain behavior changes. Published1.0.0 no token, palette, font, component API or domain behavior changes. Published1.0.0
and its static export remain immutable. Export1.0.1 must come from exact package bytes. and its static export remain immutable. Export1.0.1 must come from exact package bytes.