Skip to content

fix: keep a thread summary's label in the status face so it fits beside a card's actions - #5673

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5651
Nov 7, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5651

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

This sets a thread summary's "Earlier discussion" label in --font-status again, undoing the face #5585 gave it, so the label fits on one line beside a margin card's actions. In #5585's sender face (600 weight, 13px), the label wraps to two lines in a 1440px card. There, Next unread's words, Expand, Resolve and Close leave the root summary's header a 113px column. test_a_root_summary_keeps_thread_actions_outside_its_fold[1440-False-2] fails on main and passes on this branch.

Before (main) After
before after

Captured from the test's own card: 1440×600, light scheme, mouse.

What this gives up. #5585 answered #5532, where @max-sixty asked for a label in the sender's family so it would stop reading as the last line of the message above it. This PR brings back the small muted label, so that problem returns. I found no repair that keeps both: the sender's weight at the status size (--font-heading, 600/11.5px) still wraps in that 113px column, and only the 500 weight fits. The other ways to make room each change what the card shows, so they need a decision: hide Next unread's words, move the summary's header below the actions when space is short, or cut the label with an ellipsis. #5643 already asks @max-sixty to choose among them for the [1400-True-10] touch case, where the column is 57px. That case still fails, at about three lines, and this PR leaves it alone. #5672 tracks bringing #5585 back.

Tests: tests/browser/threads/test_summaries.py passes apart from [1400-True-10] (#5643), and tests/model/test_interface_fonts.py passes.

Closes #5651 — automated triage

…de a card's actions

Reverts #5585's face for the "Earlier discussion" label. In the sender's
face (600 weight, 13px) the label wrapped to two lines in a 1440px margin
card, where Next unread's words, Expand, Resolve and Close leave the root
summary's header a 113px column. The label now takes `--font-status`
again and fits on one line. The sender's weight at the status size
(`--font-heading`) still wraps there, so no face in the sender's family
fits that column.

Behavior changed: a summary's label is set small and muted again, as
before #5585, so under a message it can again read as that message's
last line, the problem #5532 reported.

test_a_root_summary_keeps_thread_actions_outside_its_fold[1440-False-2]
fails on main and passes with this change. The [1400-True-10] case still
fails (#5643).

Closes #5651
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.

test_a_root_summary_keeps_thread_actions_outside_its_fold[1440-False-2] fails on main since #5585 enlarged the summary label

1 participant