diff --git a/ZB.MOM.WW.Theme/Directory.Build.props b/ZB.MOM.WW.Theme/Directory.Build.props index da2e137..9aef737 100644 --- a/ZB.MOM.WW.Theme/Directory.Build.props +++ b/ZB.MOM.WW.Theme/Directory.Build.props @@ -4,7 +4,7 @@ enable enable latest - 1.0.0 + 1.0.1 true diff --git a/ZB.MOM.WW.Theme/README.md b/ZB.MOM.WW.Theme/README.md index 9f7f5c5..68b6014 100644 --- a/ZB.MOM.WW.Theme/README.md +++ b/ZB.MOM.WW.Theme/README.md @@ -12,6 +12,14 @@ basic chrome works in static SSR with Bootstrap CSS. `ThemeScripts` also ships t optional shared `nav-state.js` enhancer for persisted section state; include it once before ``. No Bootstrap collapse bundle is required. +## 1.0.1 narrow-grid patch + +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 +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. + ## Accessible component contracts (1.0.0) `TechField` associates its existing label, help and error with a caller-owned input. 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 40d48ab..11436d6 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 @@ -291,7 +291,7 @@ a:hover { color: var(--accent-deep); text-decoration: underline; } Zebra striping on even rows. .v.warn / .v.bad / .v.ok recolour a value. */ .card-grid { display: grid; - grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 0.85rem; margin-bottom: 1rem; } diff --git a/components/ui-theme/validation/theme-1.0.1/DECISION.md b/components/ui-theme/validation/theme-1.0.1/DECISION.md new file mode 100644 index 0000000..08281a7 --- /dev/null +++ b/components/ui-theme/validation/theme-1.0.1/DECISION.md @@ -0,0 +1,22 @@ +# Shared narrow-grid correction — 1.0.1 + +Additional actual Overview checks after the accepted 1.0.0 pilot reproduced a shared +constraint: the card grid stayed 290px wide inside a 280px column at a 320px viewport; +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; +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. + +Concurrent agents work in unrelated libraries/consumers. Before packing, verify all +Theme package inputs match the recorded committed source. Pin SourceRevisionId and +RepositoryCommit explicitly for build/pack so a concurrent unrelated Git commit cannot +change artifact provenance. No unrelated library is packed or published. + +Validate Theme full suite, exact package/export payloads, actual affected Overview +reflow/zoom and unchanged normal layout, then publish only reviewed bytes and verify +fresh downloads/restore. Other consumers perform their normal chapter checks after +adopting the same patch. This record does not claim those checks or publication yet. diff --git a/components/ui-theme/validation/theme-1.0.1/shared-grid-before.json b/components/ui-theme/validation/theme-1.0.1/shared-grid-before.json new file mode 100644 index 0000000..e94adbd --- /dev/null +++ b/components/ui-theme/validation/theme-1.0.1/shared-grid-before.json @@ -0,0 +1,14 @@ +[ + { + "innerWidth": 320, + "scrollWidth": 320, + "grid": "290px", + "gridWidth": 280 + }, + { + "innerWidth": 195, + "scrollWidth": 310, + "grid": "290px", + "gridWidth": 155 + } +]