Editor: notes float at the foot of the desk
The speaker notes are a card (estilo-card) at the foot of the stage pane, its last child and in the flow, so the stages give up its height by layout. It has the word Notes, an x that closes it, a top edge that resizes it (drag, or ArrowUp/ArrowDown by 16px, Home and End to the limits: two lines and the head, half the desk), and the same notes field, bound as before; its body is the only part that scrolls. Closed, it is a 32px icon in the pane's bottom start corner whose dot and name say when the slide has notes. Open or closed stays under NOTES_KEY with the switch's values; the height is NOTES_HEIGHT_KEY. The switch above the stage is gone; View > Speaker notes opens and closes the card and its check follows it. fixtures/notes-card.mjs holds the card; editor-entry wires it and refreshes the icon on a slide change and on every change to the current slide's text. From 1100px the stages now fill the pane in every view, so a view switch need not resize them: phone-frame.mjs gains update(), which applyView calls, so the phone is measured again when its room changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 files changed,
+999
−77
fixtures/editor-entry.js+22 −16fixtures/head.mjs+15 −8fixtures/notes-card.mjs+202 −0fixtures/notes-card.test.mjs+243 −0fixtures/phone-frame.mjs+9 −3fixtures/phone-frame.test.mjs+23 −0internal/slides/credits/assets.json+1 −1internal/slides/editor.go+9 −5internal/slides/locales/en.toml+5 −1internal/slides/static/{editor.1bbe791b0e6515da.js => editor.bb204fb62455de65.js}+15 −15internal/slides/static/editor.css+156 −24internal/slides/templates/editor.html+19 −4internal/slidestest/browser_editor_tidy_test.go+176 −0internal/slidestest/editor_tidy_test.go+62 −0internal/slidestest/fonts_browser_test.go+42 −0
fixtures/editor-entry.jsLoading diff…
fixtures/head.mjsLoading diff…
fixtures/notes-card.mjsLoading diff…
fixtures/notes-card.test.mjsLoading diff…
fixtures/phone-frame.mjsLoading diff…
fixtures/phone-frame.test.mjsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/editor.goLoading diff…
internal/slides/locales/en.tomlLoading diff…
internal/slides/static/{editor.1bbe791b0e6515da.js => editor.bb204fb62455de65.js}Loading diff…
internal/slides/static/editor.cssLoading diff…
internal/slides/templates/editor.htmlLoading diff…
internal/slidestest/browser_editor_tidy_test.goLoading diff…
internal/slidestest/editor_tidy_test.goLoading diff…
internal/slidestest/fonts_browser_test.goLoading diff…