Repository navigation
Fit each floating-panel view to its content, and let an open view cover the page - #2781
Merged
Merged
Conversation
…er the page A view opened above the panel's row is now as tall as what it holds, up to the window less the row's band and a band of the page above the box (about 660px at 900px tall). A one-message page thread opens one message tall instead of 280px over empty space, and a long thread or Threads list reads in most of the window instead of scrolling in a 440px box. Lists (Threads, Questions, Versions, a group) still hold the room they first took, so a filter, a tab or an arriving thread moves nothing at their head. A thread's view follows its messages: its reader already holds back news that would move what is read, so an agent reply waits behind New reply without moving anything, and opening it, or sending a reply, grows the view to show it. The larger size follows from content alone; an Expand control was rejected because the growth it asks for would carry it up from under the pointer. An open view now counts as covering what lies beneath it. The head and the view stand in one wrapper declared with `declareOccluder`, so seenRect and the readings built on it treat the page under it as unseen. Two parts of the occluder model assumed a full-height side panel and are generalized: `restingBox` sums offsets up to the fixed box a surface stands in, and `hides` asks the inline question only of a surface that spans the room the page shows, and of a partial-height surface both axes where the destination stands. Behavior changes: test_a_thread_s_view_is_as_tall_as_its_messages and test_an_open_view_covers_the_page_beneath_it are new. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 13, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 31, 2026
… still A second review of the head-line hold found three things wrong with the last commit. Opened news no longer grows the view. The exception let the notice's press carry Resolve and Close up from beside it, and it showed the news only where the view could still grow: a thread Resolve had opened at the resolved one's height, or one at the view's cap, left the news below the fold. The previous commit message attributed the growth to the user's choice of 14 October; that choice was the awaited answer growing the view, and "news they open grows the view" dates from #2781, when the notice stood at the foot. A press on the notice now holds the view like any head-line press, and lands as an opening does, at the turn the user comes back for (`arriveAt`, `showReturnTurn`), so the first reply it held comes into sight. A list's Close keeps its room while a search holds the field, hidden as spent Next unread is, so the search press beside it stays under the pointer rather than sliding right by Close's width. Main also drops Close there; this keeps its place. Next unread keeps its words on a phone. Its ↓ alone broke browser/AGENTS.md's rule that an action shows one symbol or one word wherever Leaf offers it, and ↓ is already Next match's symbol. Tests: the held-news press keeps every head-line press in place and brings the first held reply into sight (fails without the landing); Threads' search press stays put as search opens.
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.
A view opened above the floating panel's row (Questions, Threads, a thread, Versions, a group) now fits what it holds, up to the window less the row's band and a band of the page above the box (about 660px at 900px tall). A one-message page thread opens one message tall instead of 280px over empty space, and a long thread or Threads list reads in most of the window instead of scrolling in a 440px box. The larger size follows from content alone; an Expand control at the view's head was rejected because the growth it asks for would carry it up from under the pointer.
Lists still hold the room they first took, so a filter, a tab or an arriving thread moves nothing at their head. A thread's view follows its messages: its reader already holds back news that would move what is read, so an agent reply waits behind New reply without moving anything, and opening it, or sending a reply, grows the view in one step while the surface follows by its clip.
An open view now counts as covering the page beneath it: the head and view stand in one wrapper declared with
declareOccluder, soseenRectand the readings built on it treat what lies under it as unseen. Two parts of the occluder model assumed a full-height side panel and are generalized ingeometry.js:restingBoxsums offsets up to the fixed box a surface stands in, andhideskeeps the inline measure for a surface spanning the room the page shows and asks a partial-height surface about both axes where the destination stands.Tests:
test_a_thread_s_view_is_as_tall_as_its_messagesandtest_an_open_view_covers_the_page_beneath_it(both fail on main), plus the existing panel journeys and the side-panelhidestests.