diff --git a/frontend/src/components/tree-editor/TreeCanvasNode.tsx b/frontend/src/components/tree-editor/TreeCanvasNode.tsx index 0dc99d6e..22f029f7 100644 --- a/frontend/src/components/tree-editor/TreeCanvasNode.tsx +++ b/frontend/src/components/tree-editor/TreeCanvasNode.tsx @@ -166,7 +166,8 @@ export function TreeCanvasNode({ className={cn( 'flex items-center gap-2 px-3 py-2.5', !isExpanded && 'cursor-pointer hover:bg-accent/50 rounded-t-xl', - !isExpanded && 'rounded-xl' + !isExpanded && 'rounded-xl', + isExpanded && 'sticky top-0 z-10 bg-card rounded-t-xl' )} onClick={!isExpanded ? handleCardClick : undefined} > @@ -322,7 +323,7 @@ export function TreeCanvasNode({ {/* Expanded editing area */} {isExpanded && ( -