From db43dfa08e9a080417ff0fe700bd1a2a34468a89 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Tue, 24 Mar 2026 23:35:02 +0000 Subject: [PATCH] fix: make branch hover scrim non-interactive so cards remain clickable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- frontend/src/components/session/BranchNode.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/session/BranchNode.tsx b/frontend/src/components/session/BranchNode.tsx index 9aef80f3..ad8ea629 100644 --- a/frontend/src/components/session/BranchNode.tsx +++ b/frontend/src/components/session/BranchNode.tsx @@ -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 */} -
setIsHovered(false)} - /> + {/* Visual dim — pointer-events-none so clicks pass through to cards */} +
{/* Expanded card positioned over the original */}