Repository navigation
Hold a label's room and cut words past it - #2884
Merged
Merged
Conversation
Since #2852 a label whose words change kept the room of its widest expected words as a least width, so words past it widened the control: On me at 100 went from 90 to 96px and moved what stood left of it, and a thread's held-news notice widened from "1 new reply" (58px) to "2 new replies" (68px) under the reader, undoing #1918's hold. The user chose to cut instead: the shift is hard to oversee, and cutting is the one rule for every room. The room is now the control's width. The element carrying `data-lf-room` holds its words in one child, which `controls.css` draws as a block of no width of its own that fills the room and ends in an ellipsis. Every room owner gains that child: Threads, Approve, On me, the agent's On count, the blanket answers, the narrowing counts, the page search count, the diff's file count, and the held-news notice, which holds the width of its first words and cuts longer news (its title keeps them whole). Cut words stay in the element's text, so the accessible name is whole. Approval's own truncation rule goes, since its room now cuts. The agent's On count stops widening its room once past it and holds two digits ("On Claude: 99") instead of one, so a count of ten or more is not cut to "On Claude: 1…". On me at 100 is cut to "On me: 1…"; TODO.md records finding the labels where a cut misleads, starting there. The held-news journey test now also asserts the cut, and its existing check that the notice's box holds across news passes again. > _This was written by Claude Code on behalf of max-sixty_ Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The banner tests that check a control stays whole read the control's scroll width, which a cut inside its room's words child never reaches. They now read the words too. The TODO entry names the agent's On count and held news beside On me. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/assets/styles/chrome.css # skills/leaf/assets/styles/components/controls.css
leaf-agent
previously approved these changes
Oct 14, 2026
…te gives it The compact-status journey expected "Agent working", while every other banner test and the suite's fixtures name the agent Claude; it failed the same way on main. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 14, 2026
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.
Since #2852 a label whose words change kept the room of its widest expected words only as a least width, so words past it widened their control and shifted the banner beside it: On me at 100 grew from 90 to 96px, and a thread's held-news notice grew from "1 new reply" (58px) to "2 new replies" (68px) under the reader, undoing #1918's hold. Asked whether such a label should widen or be cut, the user chose to cut, since the shift is hard to oversee, and asked for a TODO to find the places where a cut is actively bad.
The room is now the control's width. The element carrying
data-lf-roomholds its words in one child, whichcontrols.cssdraws with no width of its own, filling the room and ending in an ellipsis. Every room owner gains that child: Threads, Approve, On me, the agent's On count, the blanket answers, the narrowing counts, the page search count, the diff's file count, and the held-news notice, which again holds the width of its first words and cuts longer news (its title keeps them whole). Cut words stay in the element's text, so the accessible name is whole. Approval's own truncation rule goes, since its room now cuts.The agent's On count no longer grows its room past one digit; its room is two digits (
On Claude: 99), like On me's, so ten or more is not cut toOn Claude: 1…. On me at 100 is cut toOn me: 1…; the TODO entry starts there.module-authoring.md,skills/leaf/assets/AGENTS.mdand the module headers describe the held room, andcontrols.cssrecords the rejected least-width room. The held-news journey test now asserts the cut, and its existing check that the notice's box holds across news passes again. The banner tests that check Approval and the agent's count stay whole now read the words inside the room, since a cut there never reaches the control's own scroll width. The compact-status journey, which this branch's edit put in the PR's test run, expected the agent to be named "Agent" rather than the suite's "Claude" and failed the same way on main; it now expects Claude.