@synopackageland/ui 0.20.11 → 0.20.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -146,6 +146,40 @@ this in Chromium at 390 and 768 with touch, with Android emulated by a
146
146
  viewport resize and iOS by a stand-in visual viewport. A real-device pass on
147
147
  iOS Safari and Android Chrome is still needed (spec D6).
148
148
 
149
+ ## Short screens
150
+
151
+ A screen at most 480px tall (a phone in landscape: 753×279, 667×375,
152
+ 844×390) is too short for a page header, a section strip, the settings rows and
153
+ an Apply footer stacked over each other. Outside the phone presentation,
154
+ `AppLayout` then switches to its short mode (`SHORT_VIEWPORT_QUERY`,
155
+ `(max-height: 480px)` of the viewport, so a DSM window on a desktop never gets
156
+ it). The root carries `data-ui-layout-short`, and `APP_SHORT_KEY` tells
157
+ components below it. Every App gets it; there is nothing to set.
158
+
159
+ - **The title is in the bar.** The page's title (AppLayout's `title`, else
160
+ its `PageHeader`'s) leads the bar above the page (`data-ui-layout-bar`),
161
+ in the row of the `toolbar` slot. A `PageHeader` with the same title keeps
162
+ its heading for screen readers only, and takes no room when it has nothing
163
+ else to show.
164
+ - **The page scrolls as one.** A page holding a `SettingsPage` or a
165
+ `SectionTabs fill` no longer squeezes the settings body between the bar,
166
+ the strip and the footer: in a layout with a height of its own (`height="fill"`,
167
+ or a content area the App clips or scrolls) the whole column scrolls, the
168
+ bar and the header scroll away, the section strip sticks at the top and
169
+ Reset / Apply at the bottom.
170
+ Other pages, such as a DataGrid that scrolls itself, keep their layout.
171
+ - **The header does not stick.** A `PageHeader` scrolls with the page, in a
172
+ tight row (8px above and below).
173
+
174
+ At any height, a `SectionTabs fill` strip (and a pushed section's Back header on a phone) sticks below a sticky `PageHeader`
175
+ in the same `PageContent` (`--ui-page-sticky-top`, the header's height)
176
+ instead of sliding under it.
177
+
178
+ A phone in portrait keeps the phone presentation unchanged. `node
179
+ scripts/check-short-viewport.mjs [out-dir]` (after `pnpm build`) checks the
180
+ three landscape sizes, 360×697 and 1280×800 for a shell that hides its title,
181
+ one that shows a `PageHeader` (filled or not) and a filled AppLayout.
182
+
149
183
  ## Web presentation sidebar
150
184
 
151
185
  In `web`, the sidebar's 48px head row ends with a collapse button, and a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synopackageland/ui",
3
- "version": "0.20.11",
3
+ "version": "0.20.12",
4
4
  "description": "Shared Vue 3 UI component library with a DSM 7 inspired application theme",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -92,6 +92,7 @@
92
92
  "check:text-select": "node scripts/check-text-select.mjs",
93
93
  "check:date-picker": "node scripts/check-date-picker.mjs",
94
94
  "check:full-page": "node scripts/check-full-page.mjs",
95
+ "check:short-viewport": "node scripts/check-short-viewport.mjs",
95
96
  "check:detail-surface": "node scripts/check-detail-surface.mjs",
96
97
  "check:internal": "node --test scripts/check-internal-content.test.mjs scripts/check-npm-metadata.test.mjs && node scripts/check-internal-content.mjs --repo .",
97
98
  "check:npm-metadata": "node scripts/check-npm-metadata.mjs",