oficina / slides Public

Editor: the Outline stays inside the window

The Outline was placed at the View title's left edge with nothing to
keep it in the window, so on a narrow screen its rows ran past the
right edge. open() now moves it back from the end edge when its title
is nearer that edge than the panel is wide, and caps its height at the
room under its title, past which it scrolls inside itself.

TestQuieterOutlineFits checks it at 1000x800 and 320x700 on a slide of
twenty boxes, one with a long heading: the panel inside the window,
every row reachable, the long label cut with an ellipsis in its row.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev ca220162657f1f0cbdcf746d64cab21d075f563b parent 7ff7b4d
6 files changed, +134 −17
  • fixtures/outline.mjs +19 −0
  • fixtures/outline.test.mjs +26 −0
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/static/editor.4552a48e18eb34e3.js +0 −16
  • internal/slides/static/editor.772606a03f877bb4.js +16 −0
  • internal/slidestest/browser_quieter_test.go +72 −0
fixtures/outline.mjs

Loading diff…

fixtures/outline.test.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/static/editor.4552a48e18eb34e3.js

Loading diff…

internal/slides/static/editor.772606a03f877bb4.js

Loading diff…

internal/slidestest/browser_quieter_test.go

Loading diff…