Skip to content

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
max-sixty merged 3 commits into
mainfrom
deck-workspace
Nov 26, 2026
Merged

max-sixty merged 3 commits into
mainfrom
deck-workspace

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

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.

  • Guidance: 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.
  • Deck CSS: in a 720 px window the workspace's region (499 px) is shorter than every catch-up card, and the bar scrolled away with a tall card (−72 px on main, read down to its options). The bar now sticks at the deck's top and adds its height to --lf-top, so it stays at 156 px, and m, 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.

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

…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 leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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.

Comment thread packages/deck/defaults.css Resolved
…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.
@max-sixty max-sixty changed the title Send a deck that is the page's whole work to a workspace, and keep its bar in view there Use a workspace for a page whose whole task is one view that changes height, and keep the deck's bar in view there Nov 25, 2026
@max-sixty
max-sixty merged commit 4a7c458 into main Nov 26, 2026
5 checks passed
@max-sixty
max-sixty deleted the deck-workspace branch November 26, 2026 04:09
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_
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 |
|---|---|
|
![before](https://github.com/user-attachments/assets/188144a2-6672-4091-b068-e6e3c8dffc17)
|
![after](https://github.com/user-attachments/assets/dd5a0d15-7ef8-4861-81d5-b52ae075c799)
|

Closes #7246 — automated triage

Co-authored-by: leaf-agent <[email protected]>
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.

2 participants