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
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
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: 620px) { .agg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 319px) { .agg-grid { grid-template-columns: 1fr; } }
.agg-card {
background: var(--card);