Skip to content

Keep the menu's Undo row on one line, its words cut with an ellipsis - #6580

Merged
max-sixty merged 1 commit into
mainfrom
undo-row-ellipsis
Nov 20, 2026
Merged

max-sixty merged 1 commit into
mainfrom
undo-row-ellipsis

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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 ⌘Z chip 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 stills shows the Undo row on one line in plan-more and panel-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_tab now 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.

This was written by Claude Code on behalf of max-sixty

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_
@max-sixty
max-sixty merged commit 6b73bf2 into main Nov 20, 2026
6 checks passed
@max-sixty
max-sixty deleted the undo-row-ellipsis branch November 20, 2026 06:20
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