Skip to content

Fit each floating-panel view to its content, and let an open view cover the page - #2781

Merged
max-sixty merged 2 commits into
mainfrom
agent-add27d31e3304dbdc
Oct 13, 2026
Merged

max-sixty merged 2 commits into
mainfrom
agent-add27d31e3304dbdc

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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, so seenRect and 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 in geometry.js: restingBox sums offsets up to the fixed box a surface stands in, and hides keeps 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_messages and test_an_open_view_covers_the_page_beneath_it (both fail on main), plus the existing panel journeys and the side-panel hides tests.

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

max-sixty and others added 2 commits October 13, 2026 14:51
…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]>
@max-sixty
max-sixty merged commit 12bb60a into main Oct 13, 2026
3 checks passed
@max-sixty
max-sixty deleted the agent-add27d31e3304dbdc branch October 13, 2026 22:05
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.
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