Editor: notes resize from the height shown; a 24px top edge
The notes card keeps two heights: the preferred one, which is stored, and the one shown, which is the preferred one clamped to the desk as it is now. Arrow keys, Home and End, and a drag start from the shown height, and their result becomes the preferred one. A stored 400px on a desk that allows 300 now goes to 284 on ArrowDown. Before, it stayed at 300, and a downward drag did nothing at first. The top edge is now 24px tall. It lies in the 12px gap over the card and the card's 12px padding, so it covers neither the stages nor the heading and the x. TestTidyNotes checks its size and position, and that the heading and the x still get their clicks. Its notes-emptying step now selects with Ctrl+A rather than a script-set selection, which ProseMirror sometimes saw only after the key.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 files changed,
+143
−43
fixtures/notes-card.mjs+34 −21fixtures/notes-card.test.mjs+58 −0internal/slides/credits/assets.json+1 −1internal/slides/static/editor.css+9 −6internal/slides/static/{editor.bb204fb62455de65.js => editor.e968c8fbcf43501d.js}+14 −14internal/slidestest/browser_editor_tidy_test.go+27 −1
fixtures/notes-card.mjsLoading diff…
fixtures/notes-card.test.mjsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/static/editor.cssLoading diff…
internal/slides/static/{editor.bb204fb62455de65.js => editor.e968c8fbcf43501d.js}Loading diff…
internal/slidestest/browser_editor_tidy_test.goLoading diff…