Skip to content

Draw the leaf's menu over everything the panel's box holds - #4107

Merged
max-sixty merged 2 commits into
mainfrom
expand-under-menu
Oct 25, 2026
Merged

max-sixty merged 2 commits into
mainfrom
expand-under-menu

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

With a long draft in the panel's field, opening the leaf's menu left the field's more-room mark (↗↙) drawn over the menu's Keyboard shortcuts and Fold to the leaf rows. Clicks there still reached the menu, because the mark's glyph takes no pointer events.

The cause is that the panel's card formed no stacking context. The glyph is an .lf-action-icon, which response.css raises to z-index: 1 over its press's disc. That z-index was meant to stay local to the button, but nothing between the button and the panel (z-index: 9000) contained it, so the glyph stacked in the panel's context beside the menu, which is positioned with z-index: auto, and drew over it. Send, Dictate, a comment box's error and the glyphs in an open view's controls carry the same kind of local z-index, and any of them could draw over the menu in a layout that put it under the menu. This affects Chromium and Firefox alike.

The fix is isolation: isolate on .lf-fp-card. Every z-index inside the card now stays inside it, and the menu and the peek, which come after the card in the tree, draw over all of it. No z-index changes.

test_the_leaf_s_menu_covers_what_the_panel_holds opens the menu over a long draft and checks that the menu's pixels stay the same when the card's contents are made transparent. It fails on main and passes here.

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

max-sixty and others added 2 commits October 25, 2026 12:44
The panel's card formed no stacking context, so a z-index local to a component it holds stacked in the panel's own context beside the leaf's menu, which has none, and drew over it. A long draft's more-room mark showed through the menu's Keyboard shortcuts and Fold rows: its glyph is an `.lf-action-icon`, raised to z-index 1 over its press's disc. Send, Dictate, a comment box's error and the open view's glyphs carry the same local z-indexes. The card now isolates them, so the menu and peek that follow it in the tree stand over all of it.

A new test checks that no pixel of the box shows through the open menu.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 78817a8 into main Oct 25, 2026
4 checks passed
@max-sixty
max-sixty deleted the expand-under-menu branch October 25, 2026 19:58
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