Put the editor's no-scripts notice under its bar
A deck opens in the editor now, so somebody with scripts off lands there from the list. The <noscript> that says editing needs scripts and links the viewer is first in the editor's root, but the root is a grid with named areas and an item with none is placed after them: it sat under the whole desk, below the fold, under a page that looked editable and was not. It gets a row under the bar, only with scripting off, so a page with scripts keeps exactly the grid it had (an extra empty row took a share of the root's stretched height and moved the desk on a late editor mount, which TestFontALateEditorMovesNothing caught). AGENTS.md says where a deck opens, where its rung is chosen, and what the viewer looks like now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+35
−4
AGENTS.md+14 −4internal/slides/static/editor.css+21 −0
diff --git a/AGENTS.md b/AGENTS.md| index cd899a9..a7df283 100644 |
| --- a/AGENTS.md |
| +++ b/AGENTS.md |
| @@ -67,10 +67,20 @@ seeded on first sign-in — and comes back out as a PDF. |
| ruling 16, codex 6). On a team instance Home's roster replaces that |
| recheck (spec §6.4, "Team mode" below). |
| - **Decks**: list, create, settings, delete, three rungs (private, |
| - granted, team) per suite ruling 15. |
| -- **The viewer** (`internal/slides/viewer.go`): one slide per page, |
| - previous and next as ordinary links (changed in place with a script, |
| - `fixtures/viewer-nav.mjs`), notes in a `<details>`. The owner, |
| + granted, team) per suite ruling 15. A deck opens in the editor, as a |
| + document does in Docs: the list links `/d/{sqid}/edit`, and the bare |
| + `/d/{sqid}` is a 303 there (after `deckFor`, so a stranger still gets |
| + the 404). Who can open a deck is chosen on its share page |
| + (`POST /d/{sqid}/share/access`, `mayChangeRung`), as general access |
| + is under Share in Docs; the settings page is the scriptless title and |
| + theme form, linked only from the editor's `<noscript>`. |
| +- **The viewer** (`internal/slides/viewer.go`): `/d/{sqid}?slide=N`, |
| + one slide per page, previous and next as ordinary links (changed in |
| + place with a script, `fixtures/viewer-nav.mjs`), notes in a |
| + `<details>`, the slides as a rail at its side from 1100px. Shaped as |
| + Docs shapes a document: the deck's title is the bar's context and |
| + Share… the bar's action; the page's own row is Edit, Present and an |
| + overflow. The owner, |
| a team member and a stranger holding a share link all get the same page |
| from the same template with `mode` as a field, because the day those |
| three drift is the day one of them leaks the speaker notes. |
diff --git a/internal/slides/static/editor.css b/internal/slides/static/editor.css| index a988366..06d436a 100644 |
| --- a/internal/slides/static/editor.css |
| +++ b/internal/slides/static/editor.css |
| @@ -44,6 +44,27 @@ |
| grid-template-columns: minmax(0, 1fr); |
| min-block-size: 100dvh; |
| } |
| +/* With scripts off the <noscript> says the editor needs them and links |
| + the viewer. It is first in the root, but a grid places an item with no |
| + area after the named ones: it was under the whole desk, below the |
| + fold, while a deck opened here from the list. Under the bar instead. |
| + Only with scripting off: a page with scripts is untouched (a fourth |
| + row, even empty, would take a share of the root's stretched height |
| + and move the desk). */ |
| +@media (scripting: none) { |
| + [slides-editor] { |
| + grid-template-areas: |
| + "bar" |
| + "notice" |
| + "fonts" |
| + "desk"; |
| + } |
| + [slides-editor] > noscript { |
| + display: block; |
| + grid-area: notice; |
| + padding: var(--rst-sp-3) var(--rst-sp-4) 0; |
| + } |
| +} |
| [slides-editor] > [slides-fonts-status] { |
| padding-inline: var(--rst-sp-4); |
| } |