Repository navigation
fix: keep a thread summary's label in the status face so it fits beside a card's actions - #5673
Merged
Merged
Conversation
…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
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.
This sets a thread summary's "Earlier discussion" label in
--font-statusagain, 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.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.pypasses apart from[1400-True-10](#5643), andtests/model/test_interface_fonts.pypasses.Closes #5651 — automated triage