Scroll the document, and let the chrome scroll with it #110

Merged
lilleman merged 10 commits from document-scroll into main 2026-09-10 16:24:03 +02:00
3 changed files with 4 additions and 7 deletions
Showing only changes of commit 60aa8a888e - Show all commits
+2 -5
View File
@@ -28,11 +28,8 @@ test.beforeEach(async ({ context }) => {
await context.addCookies([{ name: SESSION_COOKIE, url: BASE_URL, value: devSession() }]);
});
// The shell must never clip a page: a body that does not scroll itself has to reach the reader
// through the document. One page per body idiom, since the change removed a bounded rule from each
// (.form-page never had one, .shell-auth did). A key press, not scrollIntoView — a script can scroll
// an overflow-hidden box, a reader cannot; and not the wheel, which Firefox's synthetic event never
// delivers to the document.
// A key press, not scrollIntoView — a script can scroll an overflow-hidden box, a reader cannot;
// and not the wheel, which Firefox's synthetic event never delivers to the document.
for (const [name, path, tail] of [
["the starter dashboard", "/dashboard", ".form-actions .btn"],
["the public landing", "/", ".landing-actions .btn"],
+1 -1
View File
@@ -562,7 +562,7 @@ span.nav-self { cursor: default; } /* static / non-clickable */
/* ---------- 9. TABLE --------------------------------------- */
/* A bounded region is opt-in: give this a height and the header below stays put inside it. */
.table-wrap { overflow-x: auto; }
.table-wrap { overflow: auto; }
table.table {
width: 100%; border-collapse: separate; border-spacing: 0;
font-size: var(--fz); font-variant-numeric: tabular-nums;
+1 -1
View File
@@ -7,7 +7,7 @@
name it when two tables share a page
scrollRegion? take the leftover height and scroll, so the header stays
put — needs the shell's `fill: true` and a flex chain
above (README → the app shell)
above (README → The menu system)
columns: { label, sortable?, sort?: "asc"|"desc", href?, className? }[]
rows: { name?, cells: Cell[], actions?: Action[] }[]
Cell ∈ string | { text, className? } | { user:{name,initials} } | { rowHeader:{text,href?} } | { badge:{tone,label} } | { html, className? }