Repository navigation
Keep the menu's Undo row on one line, its words cut with an ellipsis - #6580
Merged
Merged
Conversation
The leaf's menu wrapped a row's words to a second line where they ran past the panel's width, so Undo naming a long comment pushed every row below it down. The user asked for the row to stay on one line instead: its words are now cut with an ellipsis where the line runs out, the age and the key chip stay beside them, and hovering the row reads the words whole, as it already did for every other row the panel cuts. This reverses the wrap #3586 chose when the row first named its gesture. Every menu row takes the panel's one-line cut, so a thread's name or a version's note among the menu's search results is cut the same way. Under a finger, with no hover to read cut words, a row still says its words whole on as many lines as they need. test_undo_names_what_it_takes_and_how_long_ago_in_a_fresh_tab now ends with the user's own case, a long comment, and checks that the row is cut and as tall as About this page; it fails on the wrapping rule. > _This was written by Claude Code on behalf of max-sixty_
leaf-agent
approved these changes
Nov 20, 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.
The leaf's menu wrapped a row's words to a second line where they ran past the panel's width, so Undo naming a long comment (
Undo: commented “The CLI exiting does not mean its background…”) pushed every row below it down. The row now stays on one line: its words are cut with an ellipsis where the line runs out, the age and⌘Zchip stay beside them, and hovering the row reads the words whole, as it already does for every other row the panel cuts. This reverses the wrap #3586 chose; the user asked for the cut.The change deletes the two-line clamp on
.lf-fp-item > .lf-fp-label, so every menu row takes the panel's existing one-line cut, a thread's name or version note among the menu's search results included. Under a finger, with no hover to read cut words, a row still wraps to say its words whole. The version rows' own one-line override existed only to undo the clamp and goes with it.Requested by the user on a Leaf page.
leaf-dev stillsshows the Undo row on one line inplan-moreandpanel-errors, with the Versions view unchanged on desktop and phone; Firefox hover reads the whole label.test_undo_names_what_it_takes_and_how_long_ago_in_a_fresh_tabnow checks a long comment's row is cut and as tall as its neighbours, and fails on the old rule; the floating panel's menu, version and finger tests pass.