Skip to content

fix: keep boards inside column pages beside contents maps - #1846

Closed
leaf-agent wants to merge 3 commits into
mainfrom
fix/issue-1845
Closed

leaf-agent wants to merge 3 commits into
mainfrom
fix/issue-1845

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

A column page with a contents map gave wide widgets the shell width even after the map claimed part of the left margin. The board also used that shell width as its minimum-width cap, so at 816px it extended 24px beyond the page gutter. The column Layout now derives page capacity from its reading width and free space on each side, and the board uses that capacity for its minimum. Its columns scroll inside the board when they need more room.

The regression failed before the change at 816px (board right edge 840px in an 816px viewport) and passes after it at 816, 880, and 1120px. Selected wide-widget, framed-box, board-scrolling, and render-gate tests also pass.

Closes #1845 — automated triage

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The board’s new page capacity can make it wider than a framed container. A 400px inline-size container on a 1120px column page renders a four-column board at 720px, past the frame’s right edge. Keep the nearest-container cap alongside the page cap so the columns scroll within the board.

Comment thread skills/leaf/packages/default/theme.css Resolved
The page-room cap fixed boards beside contents maps but replaced the nearest size-container cap. In a 400px framed box on a wide column page, the inherited page room set a 720px board floor and made it escape the frame. Keep both caps so the board scrolls internally. The new browser regression failed before this change and passes after it.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A board in an Ask's evidence track can still claim page-wide space and cover the answers. At 1440px, a six-column board ended at 1172px while its evidence track ended at 940px and the answers began at 962px. The board minimum reads --lf-page-room even though the Ask grants the evidence a smaller track; 100cqi is the Ask's width there. The allocation already expressed by --lf-reach needs to bound the board's floor, with framed holders granting their own width. #1851 includes that broader allocation fix and also closes #1845, so this PR now overlaps it.

@leaf-agent leaf-agent closed this Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A board beside a contents sidebar stands past the page room at mid widths

2 participants