Skip to content

Show each floating surface across the content it can hold #4032

Closed as not planned

Description

@max-sixty

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-review steps 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.js chooses (commentSide) over a grid of inputs, which pnpm run test:runtime can 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

  1. added
    backlog
    next
    layout
    on Oct 25, 2026
  2. added
    postponed
    and removed
    next
    on Nov 8, 2026
  3. max-sixty commented on Nov 8, 2026

    @max-sixty
    OwnerAuthor

    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.

    This was written by Claude Code on behalf of max-sixty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backloglayoutpostponed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions