Repository navigation
Use a workspace for a page whose whole task is one view that changes height, and keep the deck's bar in view there - #7192
Merged
Merged
Conversation
…s bar in view there The deck's guidance (its registry instructions and author.md) now says that where getting through the cards is the page's whole work, the deck is a workspace's body, with the page's title and a line of context in its header, and that among other material it stays in the column. page-layout.md's queue paragraph names a pile of cards as the body for a queue the user would rather take one at a time than see. As a workspace's body the deck is the box the Layout scrolls. Its bar now sticks at the deck's top and adds its height to --lf-top for the cards, as a sticky header does, so a card taller than the region scrolls under the bar and m lands a card below it. In Firefox at 1100x720, with the catch-up deck as a workspace's body (region 499 px, cards 539-675 px), reading the tallest card down to its options left the bar at -72 px on main and leaves it at 156 px now; at 1100x900 nothing changes. Rejected: the open card scrolling inside its own frame, since m reveals an answer through the scrollports around it and so scrolled the card's question out of view. Score (evals/deck-page-takes-the-window, Claude Code, 3 repeats per arm): a page of six pull requests to take one at a time made the deck a workspace's body in 0 of 3 runs on main and 3 of 3 with this guidance; the control, three follow-ups in a deck after an outage report, stayed a column page in all 6 runs. The maintainer asked, in a thread on the catch-up deck's report page, how to get agents to use a workspace for widgets whose height changes as the user works.
leaf-agent
reviewed
Nov 25, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The stuck bar is missing --lf-head-inset: 0px, which module-scroll-and-motion.md, "Sticky headers", asks of every sticky header. Without it, a control focused in the bar keeps the focus ring's landing room as its scroll-margin-top (element-marks.css, the :where(:focus) rule), so while the bar is stuck at the deck's top, each Tab onto Back or Later scrolls the deck to clear a band the bar can never leave, and the card creeps upward a few pixels per key. The suggestion inline is the one-line fix the other sticky headers use.
…eep focus clear of the deck's bar The rule moves out of the deck's own guidance into page-authoring.md's "Composing a page", stated for any view whose height changes as the user works, with a stack of cards as its example: use a workspace when the page's whole task happens in that view, and keep it in a report's flow when it is part of one. The deck's registry entry and author.md go back to main's text, so the rule has one home. Fixes from an independent review of the sticky bar: every child below the bar, the end of the pass included, takes the bar's height in --lf-top, so a recap link reached by Shift+Tab lands below the bar rather than behind it; the bar sets --lf-head-inset: 0px, as sticky headers do, so tabbing between Back and Later no longer scrolls the card; and each deck resets --lf-deck-fills, so a deck inside another deck's card keeps a bar that scrolls. The eval's rubric now judges where Leaf applies the workspace Layout and whether the deck is its body or stands in the question group that is. Score with this wording (Claude Code, 3 repeats per arm): the six pull requests went to a workspace in 0 of 3 runs on main and 3 of 3 here; the outage report's deck stayed in the column in all 6 runs. In Firefox at 1100x720 the bar stays at 156 px through answers, m, Back, Later and the tallest card read to its options.
leaf-agent
approved these changes
Nov 25, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 26, 2026
Makes the catch-up example a workspace whose body is its deck, as #7192's rule now asks of a page whose whole task is a stack of cards taken one at a time. The page never scrolls, so the deck's bar stays put through every answer, `m`, Back and Later: 229 px in Firefox at both 1100×900 and 1100×720. Two things the diff doesn't show. The disclosure of what the agent handled moves from below the deck into the header, since as a footer it stood under Leaf's panel at the window's foot. And the page's own style caps each block at the reading column, as `page-layout.md` asks of a workspace region holding prose; without it the cards' paragraphs ran the window's width. Opening the disclosure at 720 px shrinks the deck to 324 px with its bar still in view, and on a phone the page flows as the column did. The maintainer chose #7192 on a Leaf page; following the example to it is this session's call, and they haven't read this yet. Checks: pre-commit, and a Firefox journey of five answers, six presses of `m`, and Back and Later by pointer at both window sizes; the catalog previews are recaptured and repinned. > _This was written by Claude Code on behalf of max-sixty_
This was referenced Nov 26, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 26, 2026
…bove it (#7256) Where a deck fills a workspace, as catch-up's does since #7220, its bar sticks over the cards with the page's background (#7192). The open card is a named group, so its focus and location rings stood a region's gap (8px) outside it: the bar, flush above the card, covered their top run, and the workspace's scroller clipped their sides. The location ring that `m` draws on arrival showed as only a line under the card. The card now states its marks one band inside its edge, over the frame it draws, as `tokens.css`'s "Where it stands" asks of a box with no room outside it. `tests/journeys/test_render_controls.py::test_each_sampled_focus_ring_is_shown_whole_in_its_surface` fails on main with the fault in #7246 and passes with this change (`uv run pytest -n0 … -k test_each_sampled_focus_ring_is_shown_whole_in_its_surface`, both run locally in Chrome). `test_every_ring_stands_at_a_kind_of_box` passes. **What changes on screen:** every deck card's rings, on a column page too, move from 6px off the card's frame onto it. #6408 settled that a framed box's ring lies on its frame; this card takes the inset rather than `0px`, since at `0px` the 2px band still stands outside the border and under the bar. The new `deck-card-keyboard` state captures catch-up after `m` (`uv run leaf-dev stills --state deck-card-keyboard`), Chrome, 1440×900: | main | this PR | |---|---| |  |  | Closes #7246 — automated triage Co-authored-by: leaf-agent <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agents now give a workspace to a page whose whole task happens in one view that changes height, such as a catch-up deck, and the deck keeps its bar in view there. As a workspace's body the page never scrolls, so a shorter card coming up can't pull the page down and move the bar, which is the fault #7188 fixed for column pages.
page-authoring.md's "Composing a page", where authors choose a Layout, says to use a workspace when the page's whole task happens in one view whose height changes as the user works, such as a stack of cards, and to keep that view in a report's flow when it is part of one.page-layout.md's queue paragraph names a pile of cards beside the side list. A new case,deck-page-takes-the-window, scores it: six pull requests to take one at a time went to a workspace in 0 of 3 runs on main and 3 of 3 here, and its control, a deck after an outage report, stayed a column page in all 6.--lf-top, so it stays at 156 px, andm, Tab and Shift+Tab land below it. Nothing changes at 900 px, on a phone or on a column page.To weigh: the bar sticks only where the deck is the workspace's body, or stands in the question group that is; a deck in a plain wrapper scrolls as before.
The maintainer asked for this in a thread on the catch-up deck's report page. Tests: a new browser test (a tall card scrolls under the bar in a 560 px workspace) and the neighbouring deck tests pass; the eval-catalog tests pass. An independent Codex review's findings are fixed in the second commit.