fix: make branch hover scrim non-interactive so cards remain clickable

Scrim now uses pointer-events-none — it dims visually but clicks pass
through to the cards beneath. Dismissal relies on onMouseLeave on the
wrapper div, which fires when the mouse leaves the card area.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-03-24 23:35:02 +00:00
parent b96f4a42bb
commit db43dfa08e

View File

@@ -97,11 +97,8 @@ export function BranchNode({ branch, depth, isActive, onClick }: BranchNodeProps
{/* Expanded card — floats directly on top of the base card */}
{showExpanded && (
<>
{/* Scrim behind to dim everything — dismisses on mouse enter */}
<div
className="fixed inset-0 z-40 bg-black/30"
onMouseEnter={() => setIsHovered(false)}
/>
{/* Visual dim — pointer-events-none so clicks pass through to cards */}
<div className="fixed inset-0 z-40 bg-black/30 pointer-events-none" />
{/* Expanded card positioned over the original */}
<div