oficina / slides Public

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>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev fd7ba1a8687b455ec35a05374ae8bb1c473c5f74 parent 893974f
15 files changed, +999 −77
  • fixtures/editor-entry.js +22 −16
  • fixtures/head.mjs +15 −8
  • fixtures/notes-card.mjs +202 −0
  • fixtures/notes-card.test.mjs +243 −0
  • fixtures/phone-frame.mjs +9 −3
  • fixtures/phone-frame.test.mjs +23 −0
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/editor.go +9 −5
  • internal/slides/locales/en.toml +5 −1
  • internal/slides/static/{editor.1bbe791b0e6515da.js => editor.bb204fb62455de65.js} +15 −15
  • internal/slides/static/editor.css +156 −24
  • internal/slides/templates/editor.html +19 −4
  • internal/slidestest/browser_editor_tidy_test.go +176 −0
  • internal/slidestest/editor_tidy_test.go +62 −0
  • internal/slidestest/fonts_browser_test.go +42 −0
fixtures/editor-entry.js

Loading diff…

fixtures/head.mjs

Loading diff…

fixtures/notes-card.mjs

Loading diff…

fixtures/notes-card.test.mjs

Loading diff…

fixtures/phone-frame.mjs

Loading diff…

fixtures/phone-frame.test.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/editor.go

Loading diff…

internal/slides/locales/en.toml

Loading diff…

internal/slides/static/{editor.1bbe791b0e6515da.js => editor.bb204fb62455de65.js}

Loading diff…

internal/slides/static/editor.css

Loading diff…

internal/slides/templates/editor.html

Loading diff…

internal/slidestest/browser_editor_tidy_test.go

Loading diff…

internal/slidestest/editor_tidy_test.go

Loading diff…

internal/slidestest/fonts_browser_test.go

Loading diff…