From 075cf47fc2bbdb42c98e17d9eaa99275a7e1b95c Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Fri, 13 Nov 2026 17:22:58 -0500 Subject: [PATCH] fix(theme): reflow KPI grid at narrow zoom widths --- ZB.MOM.WW.Theme/README.md | 3 ++- ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/wwwroot/css/theme.css | 1 + components/ui-theme/validation/theme-1.0.1/DECISION.md | 8 ++++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ZB.MOM.WW.Theme/README.md b/ZB.MOM.WW.Theme/README.md index 68b6014..d338e1b 100644 --- a/ZB.MOM.WW.Theme/README.md +++ b/ZB.MOM.WW.Theme/README.md @@ -16,7 +16,8 @@ before ``. 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. diff --git a/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/wwwroot/css/theme.css b/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/wwwroot/css/theme.css index 11436d6..4077580 100644 --- a/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/wwwroot/css/theme.css +++ b/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/wwwroot/css/theme.css @@ -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); diff --git a/components/ui-theme/validation/theme-1.0.1/DECISION.md b/components/ui-theme/validation/theme-1.0.1/DECISION.md index 08281a7..58143bb 100644 --- a/components/ui-theme/validation/theme-1.0.1/DECISION.md +++ b/components/ui-theme/validation/theme-1.0.1/DECISION.md @@ -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 also exist in HistorianGateway and OtOpcUa, so one canonical fix is required. -Choose compatible patch **1.0.1**. The sole visual rule change uses -`minmax(min(290px, 100%), 1fr)` in canonical theme.css. Normal widths stay unchanged; +Choose compatible patch **1.0.1**. The card-grid rule uses +`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 and its static export remain immutable. Export1.0.1 must come from exact package bytes.