Skip to content

Hang the floating panel's attached images above the panel - #3181

Merged
max-sixty merged 1 commit into
mainfrom
floating-panel
Oct 19, 2026
Merged

max-sixty merged 1 commit into
mainfrom
floating-panel

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

An image attached in the floating panel's field, the page's or an open thread's reply, now hangs on its own small card just above the panel's top edge instead of taking a line inside the panel. Attaching no longer grows the panel by a line or moves any words. With a view open the image hangs over the view's head; the leaf's menu covers it while open; folding hides it with the field.

The user chose this placement on 19 October from a live comparison of three placements (today's line of its own, hanging above, and a chip in the row). The change was built and checked in Firefox and Chromium on the attachment-above-box branch before #3100 landed; this brings it onto main after #3100 (no conflicts; runtime/chrome.css rebuilt).

Checked again on this head: in Firefox at 1440×900 on review-a-plan, the panel's box stays 540×44 at the same place across the paste, and the image stands above it. test_render_floating_panel.py's paste test now asserts the panel's box is unchanged and the image is above its top edge; the media and composer image tests pass.

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

An image attached to the panel's field, the page's or an open thread's reply, now
stands on a ground of its own just over the panel's top edge, above the field's
start, instead of taking a line of its own inside the panel. Attaching no longer
grows the panel by a line the one thumbnail left mostly empty, and moves no words.
With a view open the images hang over the view's head; the leaf's menu covers them
while it is open, and folding the panel hides them with the field.

The user chose this from a live comparison with today's row and with thumbnails
shrunk into the row beside the words. The floating-panel test now holds the panel's
size steady across the paste and the image above the panel's top edge.

Brought over from the attachment-above-box branch onto main after #3100.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit e459bed into main Oct 19, 2026
3 checks passed
@max-sixty
max-sixty deleted the floating-panel branch October 19, 2026 23:13
max-sixty added a commit that referenced this pull request Oct 20, 2026
…#3190)

An image attached to the floating panel's field (the page's or an open
thread's reply) hung above the panel as a box on a shared ground, each
image framed again with a full-height × press and a divider beside it.
Each image now hangs as its picture alone, 56px tall in its own
proportions with a ring and a soft shadow, and its removal is an 18px
round × on its top-right corner.

The × shows while a pointer is over the image or a key is on it, and
always under a finger (`hover: none`), where a 44px reach around it
removes the image. The shelf still scrolls sideways once images outrun
the field; its padding now holds the shadows and the ×'s reach, which
the scroller would otherwise cut, and keeps one image's reach off the
next.

Checked in Chromium and Firefox: opening the image, removing it by click
and by a tap 12px off the ×'s centre, light and dark, desktop and phone
width. `tests/browser/threads/test_media.py`,
`tests/browser/drafts/test_composer.py` and the panel's pasted-image
test pass. Follows #3181.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 20, 2026
#3181 named the panel's card --lf-fp-card for its attached images, which
replaced the card's --lf-fp-panel, so page search lost the anchor it stands
on above the panel and fell to the window's top, its focus ring 3px off
screen (the ring journey's passage search on triage-board). The images now
hang from --lf-fp-panel too.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 20, 2026
#3100 removed the banner, the shortcut bar, the All pages and On drawers
and the Threads side panel. This removes what only those surfaces
reached and rewrites prose that still describes them as present.

**One real bug:** the Worker's interaction schema
(`worker/src/interactions.ts`) still allowed
`banner_words`/`queue_words` and surfaces `banner`/`queue`, which
nothing emits now, and lacked `status_words`, which the floating panel's
status has emitted since #3100. The schema drops values it doesn't know,
so leaf.page logged those records without their `presentation_kind`. It
now lists what the runtime sends: `status_words` among the kinds, and
`panel`, `margin`, `page` and `outlet` among the surfaces (leaf-agent's
review).

**Also fixes a regression from #3181:** the attached-image rule gave the
panel's card a second anchor name, `--lf-fp-card`, which replaced
`--lf-fp-panel`, so page search lost the anchor it stands on above the
panel and fell to the window's top (main's focus-ring journey: passage
search on triage-board, ring 3px off screen). The images now hang from
`--lf-fp-panel`. The journey passes locally again; its remaining
teardown error is the lf-diff gallery #3191 fixes.

**Dead code** (each checked for callers in the current tree):
`awaitsAgent`/`awaitsUser` (the deleted Threads filter), `inRecentOrder`
(the deleted Recent order), `unreadBoundaries` (the side panel's thread
card), the `grow` keyframes, and the ring sweep's `offered()` column,
which asked whether the banner had hidden a control and always passed
since. Their tests go with them.

**Renamed:** `navigation.drawer.queue`/`navigation.drawer.leaves` →
`navigation.panel.queue`/`navigation.panel.leaves`, beside
`navigation.panel.threads`.

**Prose:** about 45 files of comments, docstrings, notes and test
docstrings that placed things under the banner, on the shortcut bar or
in a drawer. Past-tense history stays.

Checked: `pnpm run test:runtime`, `check:browser`, `check:worker`,
pre-commit, and the focused browser and journey ids the renames touch.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Nov 21, 2026
…#6686)

In the floating panel, a picture pasted into a draft hung just over the
panel's top edge. With a long thread open, that edge is the thread's
head, about 800 px above the box, so the picture landed far from where
the user was typing. Now the shelf hangs from the row's top edge, and
while a view is open the row takes a band as tall as the shelf's tallest
picture plus its gap on either side: the panel rises by the band and the
picture stands in it, between the thread and the box, covering neither.
With no view open nothing changes.

| Before | After |
| --- | --- |
| <img
src="https://gist.githubusercontent.com/max-sixty/b4751c48041c5bf6007876920c5d43ee/raw/aea1d2b53ee5126655690da6126f79fbe0d545e6/band-before.png"
width="380"> | <img
src="https://gist.githubusercontent.com/max-sixty/b4751c48041c5bf6007876920c5d43ee/raw/aea1d2b53ee5126655690da6126f79fbe0d545e6/band-after.png"
width="380"> |

Max picked the band on a playground over holding the picture inside the
box and standing it beside the panel. It reverses one thing #3181 kept:
the thread no longer stays still as you paste, but moves up 124 px.

The picture lands after its upload, once the paste key's rendering has
settled, so box-motion took the band as news and carried the thread up
from where it stood: the message being answered vanished behind the band
for about 100 ms
([frames](https://gist.githubusercontent.com/max-sixty/b4751c48041c5bf6007876920c5d43ee/raw/aea1d2b53ee5126655690da6126f79fbe0d545e6/band-motion.png),
top row). The composer now holds the rendering through the upload
(`holdRendering`), so the band is the paste's own result and the thread
steps up with it.

Worth weighing:

- The band is a fixed 136 px. A wide, short screenshot leaves blank
space above its picture. Sizing the band to the picture would need
script, since CSS can't size a margin from an anchored element.
- A paste from the context or Edit menu comes with no key press, so
box-motion still takes it as news, and it still hides the message for
about 100 ms. The deeper fix is in box-motion: decide a scroller's ride
by whether its content gained a turn rather than by whose change it is
(`box-motion.js`, `joins`). That changes box-motion's rule, so it isn't
in this PR.

Also: leaf-dev's paste state now works in Firefox, and a new stills
state, `thread-reply-photo`, shows the band. A fresh code review and a
fresh look at the captures found the band staying open, empty, during a
search; that is fixed. Firefox and Chromium stills, light, dark, phone
and a 900×600 window. The new test, the panel's paste tests and the
attachment tests pass, plus `test:runtime` and `check:browser`. The new
checks fail without the hold and without the search fix.

> _This was written by Claude Code on behalf of max-sixty_
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