Repository navigation
Keep an open view's last words clear of the line and New reply in the floating panel - #2902
Merged
Merged
Conversation
In the floating panel, the line over the field (#2885) lay 12px into an open view, 6px past the view's padding, so at a long thread's end its last line ran into the notice. New reply (#2892) stuck over the view's foot, so in a thread whose answer waited below the fold it sat on the user's own last turn. - The view's foot padding is now the room the line lies in (`--lf-fp-foot-room`, the line's 18px less the row's 6px), kept whether or not the line shows, so its coming still moves nothing at the view's head and the view's last words always scroll clear of it. - New reply stands on a strip of the panel's ground (`.lf-fp-foot`), fading in above the press and running down through that room, so text passing under it reads as under a layer rather than beside it. - Where the user stood at the view's end when the answer arrives, the view scrolls by the room the strip takes, keeping their last turn in sight above it. That scroll is the panel's own, so it does not count as the user reaching the answer and leaves New reply standing. Behavior change in tests: an open view now keeps 12px rather than 6px under its last words, so the Threads and one-message checks measure against a row's height and the foot room instead of fixed pixel bounds. Test: `test_nothing_in_a_view_stands_under_the_line_or_new_reply` (fails without the change at the long thread's end, and at the held reply without the scroll). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 14, 2026
# Conflicts: # skills/leaf/kernel/kernel.json # skills/leaf/kernel/leaf.js
leaf-agent
approved these changes
Oct 14, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 15, 2026
…n its 6px (#2913) Reverses #2902's room. #2902 gave every open view 12px at its foot so the line over the field (`.lf-fp-context`) could lie across the seam without covering the view's last words. Over an open view that line mostly repeated what was on screen: in a thread, "Reply in this thread", which the head names, or arrival news the view already shows ("Claude replied"); in Threads, "Comment on the page", which the placeholder said before typing. The user chose: no line over an open view, back to 6px, and a notice that matters while a view is open said by the leaf's peek, as on a folded panel. - **No line over an open view.** The line shows only with no view open, above the row, as before. The view's foot padding is 6px again, and the `--lf-fp-say`/`--lf-fp-foot-room` variables and the overlay rules go. - **The leaf's peek says a notice answering the user.** A notice the line would have said while a view is open, such as a refused send's reason, is said by the peek. Unfolded, the peek stands over the view's foot from the leaf's left edge, inside the panel's width. News arriving (`notice(..., {background: true})`, such as "Claude replied") goes unsaid there but for the live region: the notice reading now carries `news`, so the panel tells the two apart. - **New reply fits the 6px foot.** Its strip still stands on the panel's ground, its margin and padding sized to the view's 6px rather than the 12px room. Tests: `test_nothing_lies_over_a_view_s_foot_but_new_reply` replaces `test_nothing_in_a_view_stands_under_the_line_or_new_reply`: nothing is said over the view's foot (line or peek) while typing at the end of a long Threads list or thread, or when the answer's arrival waits behind New reply; the view keeps only its padding under its last words; New reply stays inside the view and clear of the user's last turn. The notice test now holds that the peek says a covered notice over an open thread, inside the window, clear of the head, from the leaf's left edge. The first-thread and click-into-field tests hold that the line stays away over a view. Each fails without the change; the foot test fails with the peek saying arrival news ("8 replies in 1 thread") if the news filter is dropped. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
In the floating panel, the line over the field (
.lf-fp-context, #2885) and New reply (#2892) both stood over an open view's foot with no room of their own. The line reached 12px into the view, 6px past its padding, so at a long thread's end its last line ran into "Claude replied". New reply stuck over whatever the view ended with, so in a thread whose answer waited below the fold it sat on the user's own last turn ("And the weekend?").--lf-fp-foot-room: the line's 18px less the row's 6px), kept whether or not the line shows. The line's coming still moves nothing at the view's head, and the view's last words always scroll clear of it. A view now keeps 12px rather than 6px under its last words, well short of the blank line Leave no blank band under an open view in the floating panel #2885 removed..lf-fp-foot) that fades in above it and runs down through that room, so the press and the line read as one foot, and text passing under reads as under a layer. At the view's end the strip stands where it stuck, in flow below the answer.fitAnswer). That scroll is the panel's own, sosawAnswerdoesn't count it as the user reaching the answer, and New reply stays.Tests:
test_nothing_in_a_view_stands_under_the_line_or_new_reply(new) holds that the last words' text box clears the line's and the press's boxes at the end of a long Threads list and a long thread the user types in, and that the user's own turn clears both while an answer waits. It fails without the change at the long thread's end, and at the held reply without the scroll. The Threads and one-message height checks now measure against a row's height and the foot room instead of fixed pixel bounds the extra 6px crossed.The kernel (#2889) is rebuilt for the runtime change.