Repository navigation
Draw the leaf's menu over everything the panel's box holds - #4107
Merged
Merged
Conversation
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]>
leaf-agent
approved these changes
Oct 25, 2026
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.
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, whichresponse.cssraises toz-index: 1over 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 withz-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: isolateon.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_holdsopens 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.