oficina / slides Public

Editor: a strip of pictures and numbers; New slide follows the last

Task Q7 of the quieter editor (spec §6.1).

- No title under a thumbnail. The slide's number is the strip's CSS
  counter, drawn by the link in a narrow gutter beside the picture; the
  label and "Current slide" are visually hidden and stay in the link's
  name, and the label is the link's title (relabel() keeps it current).
- The current slide has one mark: the accent outline round its picture.
- The item's menu trigger sits on a translucent ground
  (--slides-strip-menu-ground); a right-click on an item opens its menu.
- New slide and the layouts chevron are li[slides-strip-new], the last
  child of the strip's <ol>: a quiet row after the last thumbnail that
  scrolls with the list. The pinned foot is gone. strip.mjs adds and
  reorders slides before it; the layouts popover stays anchored to it
  and flips to stay in the window.
- TestQuieterStripMarkup, TestQuieterStrip, TestQuieterNarrow and
  TestQuieterEmptyDeck replace the pinned-foot tests
  (TestEditorTidyNewSlideInStripFoot, TestTidyNewSlideStaysInView).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 7f6c395da6305e1a87ded13683c711d12c592900 parent bdaee61
11 files changed, +710 −237
  • fixtures/strip.mjs +37 −8
  • fixtures/strip.test.mjs +87 −0
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/static/{editor.a3f0007e07ab9e46.js => editor.8669e7d311705e9b.js} +11 −11
  • internal/slides/static/editor.css +92 −88
  • internal/slides/templates/editor.html +28 −22
  • internal/slidestest/browser_editor_tidy_test.go +17 −82
  • internal/slidestest/browser_quieter_test.go +360 −0
  • internal/slidestest/editor_tidy_test.go +0 −25
  • internal/slidestest/quieter_inventory_test.go +4 −0
  • internal/slidestest/quieter_test.go +73 −0
fixtures/strip.mjs

Loading diff…

fixtures/strip.test.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/static/{editor.a3f0007e07ab9e46.js => editor.8669e7d311705e9b.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/browser_quieter_test.go

Loading diff…

internal/slidestest/editor_tidy_test.go

Loading diff…

internal/slidestest/quieter_inventory_test.go

Loading diff…

internal/slidestest/quieter_test.go

Loading diff…