Skip to content

Keep the On view's tabs inside the panel when a tab is wider than its line - #6244

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-6239
Nov 17, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-6239

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The On view's tab strip (.lf-fp-filters) is meant to scroll when its tabs don't fit, but the crumb around it keeps the strip's min-content width. So a tab longer than the line, such as On ‹agent› when the agent's name is a long description, widened the strip past the panel, and the panel's card clipped it. The strip never overflowed itself, so it never scrolled, and the tabs after the long one, Threads included, couldn't be reached by pointer or touch. At 360 px the strip measured 667 px wide inside a 340 px panel.

.lf-fp-controls now gives its width as a container's, and the strip is at most that wide (max-width: calc(100cqi + …), the extra covering its focus-ring margins). The strip now scrolls, as its comment already says it should. Tabs that fit lay out as before: leaf-dev stills --state on-me --state on-agent --state panel-leaf changed 0 px between base and head at 1440×900.

This turned up through #6230, which made every test helper reach Threads through the leaf's menu. test_a_message_reaction_trigger_meets_its_header_and_covers_no_words[360-True] and [1440-False] use an agent with a long name. Both time out on the Threads tab at main a64b8ce2f and pass with this change. The 18 browser tests that read the panel's tabs or controls also pass.

Not fixed here: the third failure in #6239, the test_a_close_request_takes_one_step_at_a_time subtest "Escape takes the view and leaves the selection to back". The leaf's menu opens on its search field, and that field takes the page's selection; this was already true before #6230. Reaching Threads by g T instead keeps the selection, but the subtest then fails about half the time when it runs alongside other tests. In those runs a comment composer for the selection is open, and its composer.close takes Escape ahead of the focused Threads view. My diagnosis is on the issue.

Refs #6239 — automated triage

… line

The tab strip (`.lf-fp-filters`) is meant to scroll when its tabs don't
fit, but the crumb around it keeps the strip's min-content width, so a tab
longer than the line, such as On <agent> naming an agent by a long
description, widened the strip past the panel, whose card clips it. The
strip never overflowed itself, so it never scrolled, and the tabs after the
long one (Threads) were out of reach by pointer or touch. `.lf-fp-controls`
now gives its width as a container's, and the strip is at most that wide,
so it scrolls as its comment says. Tabs that fit lay out as before
(`leaf-dev stills` on-me, on-agent and panel-leaf: 0 px changed).

Since #6230 every test helper reaches Threads through the leaf's menu, so
test_a_message_reaction_trigger_meets_its_header_and_covers_no_words, whose
agent has such a name, timed out on the Threads tab at both widths. It
fails before this change and passes after.

Refs #6239
@max-sixty
max-sixty merged commit b4ea04d into main Nov 17, 2026
6 checks passed
@max-sixty
max-sixty deleted the fix/issue-6239 branch November 17, 2026 03:44
max-sixty added a commit that referenced this pull request Nov 17, 2026
Brings in #6234 (grouped declarations; an `lf-options` asks with no attribute;
`selected` and `required`), #6238, #6244, #6232 and #6214.

- Each named group stays, with main's attributes inside it: no `choose`, `selected`
  for `chosen`, `required` for `needed`, swept over the branch's own converted
  examples, fixtures, evals and tests.
- `lf-ask` stays deleted, and with it `state.encloses`, which only `lf-ask`
  declared: dropped from the declaration schema, `$keys` and the generated types.
- Main's `author.instructions` and examples carry the branch's text: the named group
  in place of `lf-ask` for `lf-options`, `lf-option`, `lf-draft`, `lf-tally`,
  `lf-deck` and `lf-playground`.
- The kernel marks take main's `paint.flow`, which the earlier merge had dropped, so a
  tab set written `flow="page"` is painted as one again.
- `PAGE` keeps main's settled `PAGE_GROUP` inside the branch's named groups.
- Main's fixtures whose option groups now ask stand in named groups where they were
  bare on a page.
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