fix(theme): allow canonical cards to reflow at narrow widths
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<Version>1.0.0</Version>
|
<Version>1.0.1</Version>
|
||||||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -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
|
optional shared `nav-state.js` enhancer for persisted section state; include it once
|
||||||
before `</body>`. No Bootstrap collapse bundle is required.
|
before `</body>`. 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)
|
## Accessible component contracts (1.0.0)
|
||||||
|
|
||||||
`TechField` associates its existing label, help and error with a caller-owned input.
|
`TechField` associates its existing label, help and error with a caller-owned input.
|
||||||
|
|||||||
@@ -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. */
|
Zebra striping on even rows. .v.warn / .v.bad / .v.ok recolour a value. */
|
||||||
.card-grid {
|
.card-grid {
|
||||||
display: 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;
|
gap: 0.85rem;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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.
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"innerWidth": 320,
|
||||||
|
"scrollWidth": 320,
|
||||||
|
"grid": "290px",
|
||||||
|
"gridWidth": 280
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"innerWidth": 195,
|
||||||
|
"scrollWidth": 310,
|
||||||
|
"grid": "290px",
|
||||||
|
"gridWidth": 155
|
||||||
|
}
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user