Repository navigation
Description
Show each floating surface across the content it can hold. leaf-dev stills screenshots the same states on the base and the branch, so it reports a change but misses a surface that is wrong on both. Until PR 1440 a margin thread card took all the room right of the text, 584px around the one word "why?" at 1920px, and no still showed it, because every card in the catalogue held a long thread. Build a suite that varies what a surface holds as well as the window:
- Graded content for each surface. For a thread card that is one word, one line, two short lines, a paragraph, an exchange with an agent reply, and an unbreakable URL, each opened at 1920, 1440, beside an open panel, 1024 and 360px and cropped to the card and the marker that opened it. The comment box, the selection action bar and the floating panel's views take the same treatment.
- Measurements beside each still: the surface's box, how much of its width its content fills, whether it covers the control that opened it while there is room beside it, and whether it crosses the visible edge. A threshold on each fails a surface that was already wrong, on both arms, which a comparison cannot do.
- One page showing every still in a grid, a row per window width with the content growing along it and changed cells outlined.
lf-visual-reviewsteps through one case at a time, so the grid is a new view, in that package or beside it. - For comment placement alone, an SVG atlas of the side
comment-placement.jschooses (commentSide) over a grid of inputs, whichpnpm run test:runtimecan draw without a browser.
How to keep the candidates maintainable is not yet thought through, and comes before building. Adding a few dozen hand-written entries to STATES grows a list that nothing keeps complete. Decide whether a surface declares the ways its content varies and the suite takes every combination, where the graded fixtures live so one edit reaches every surface, how the matrix stays small enough to run and to read, and which measurements become thresholds a test enforces rather than numbers a person reads.
Migrated from TODO.md, Next › Layout: item 13 of 29 in Next, in the order TODO.md listed them.
The Layout section's introduction: The page arranges itself in CSS, starting from the Layout classes (browser/layouts.css), and Leaf keeps the contracts where pages, widgets and its chrome coordinate.
Activity
Move the backlog from TODO.md to GitHub issues labelled backlog (#4090)
max-sixty commentedon Nov 8, 2026
Closing as postponed: nothing needs this before release. Its live case, a thread card holding a 7-column table that stayed at its 388px minimum at 1920px while prose cards reached 584px, came from the theme's table containment, which #5554 removed: the card now reaches 584px. A suite of graded content would add machinery, and it waits on this issue's own design question.
Reopen when: a sizing defect appears that no existing still or probe catches.