oficina / slides Public

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>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 4291f0ff45795e0f22cf6eff0bbcb2bd05be238a parent fd7ba1a
6 files changed, +143 −43
  • fixtures/notes-card.mjs +34 −21
  • fixtures/notes-card.test.mjs +58 −0
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/static/editor.css +9 −6
  • internal/slides/static/{editor.bb204fb62455de65.js => editor.e968c8fbcf43501d.js} +14 −14
  • internal/slidestest/browser_editor_tidy_test.go +27 −1
fixtures/notes-card.mjs

Loading diff…

fixtures/notes-card.test.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/static/editor.css

Loading diff…

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

Loading diff…

internal/slidestest/browser_editor_tidy_test.go

Loading diff…