Editor: quieter notes, and a tab that says how much is there
The notes card loses its heading and estilo-card: a hairline frame on
the surface, no shadow, the × in its corner, named "Speaker notes". In
Desktop view it is the slide's width with the slide's edges, from the
one min() expression that sizes the desktop slide (the stage pane is
now a size container; its lengths are named once). The resize grip
shows on hover, focus and drag only.
Closed, the icon and dot become a text tab: "Notes", or "Notes · {n}
words", server-rendered for the first slide (len(strings.Fields(
Plain()))) and kept by notes-card.mjs's countWords, which splits on
Go's whitespace so the two agree. HEAD_PX is 26, notesMinHeight 73.
notes.title, notes.open and notes.open.has are removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 files changed,
+680
−249
fixtures/editor-entry.js+3 −3fixtures/notes-card.mjs+54 −36fixtures/notes-card.test.mjs+79 −42internal/slides/credits/assets.json+1 −1internal/slides/editor.go+22 −11internal/slides/locales/en.toml+2 −3internal/slides/static/{editor.e08a0a4c7c160e02.js => editor.ad37c27afd1f222f.js}+16 −15internal/slides/static/editor.css+105 −66internal/slides/templates/editor.html+20 −19internal/slidestest/browser_editor_tidy_test.go+35 −32internal/slidestest/browser_quieter_notes_test.go+220 −0internal/slidestest/editor_tidy_test.go+19 −21internal/slidestest/quieter_test.go+104 −0
fixtures/editor-entry.jsLoading diff…
fixtures/notes-card.mjsLoading diff…
fixtures/notes-card.test.mjsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/editor.goLoading diff…
internal/slides/locales/en.tomlLoading diff…
internal/slides/static/{editor.e08a0a4c7c160e02.js => editor.ad37c27afd1f222f.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/browser_quieter_notes_test.goLoading diff…
internal/slidestest/editor_tidy_test.goLoading diff…
internal/slidestest/quieter_test.goLoading diff…