Skip to content

fix: stack a draft's toolbar over the Copy of a code block that opens it - #7590

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-7588
Nov 29, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-7588

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

A draft whose words open with a code block lost its Edit button to the code block's Copy. #7572 drew a light widget's box before its authored children, so the draft's toolbar now stands before its words in the tree. The code block's Copy takes the same top-right seat at the same z-index: 1, comes later in the tree, and so paints over Edit and takes its presses. The toolbar now stacks at z-index: 2, which restores how the corner painted before #7572.

test_crossed_responses_wait_for_the_same_thread_widget_module timed out clicking Edit (<wa-copy-button …> from <div class="lf-draft-body …"> subtree intercepts pointer events) in run 46209069029. Locally it passes on #7572's parent 2e0b08a79, fails on #7572 (8320f6326) and on current main (80c18fe78), and passes with this change.

On screen, this changes only the hovered or focused corner of a draft that opens with a code block. Hovering the draft's words in the test's reply, before and after:

before: the code block's Copy covers the toolbar's Edit
after: the toolbar's Edit and Copy stand over the code block's Copy

The point at Edit's center hits the code block's Copy before and Edit after. leaf-dev stills for release-draft, release-draft-hover and plan-marks-draft shows 0 px change. The code block's Copy still shows below the toolbar's edge, as it did before #7572.

Refs #7588 — automated triage

#7572 drew a light widget's box before its authored children, so a draft's
toolbar now stands before its words in the tree. A draft whose words open
with a code block puts that block's Copy in the toolbar's seat at the same
z-index, and Copy, later in the tree, painted over Edit and took its presses.
The toolbar now stacks one level above, as it painted before #7572.

test_crossed_responses_wait_for_the_same_thread_widget_module failed on main
since #7572 (passes on its parent 2e0b08a, fails on 8320f63 and on
80c18fe) and passes with this change.

Refs #7588
@leaf-agent
leaf-agent merged commit 53614d0 into main Nov 29, 2026
8 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-7588 branch November 29, 2026 04:42
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.

1 participant