Browse Source

fix: remove paint containment that clips node handles at edges

contain: paint clips rendering at the element boundary like overflow:
hidden, cutting off connection handles. Keep layout and style
containment for performance without the clipping side effect.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
handoff-20260429-1057
shrimbly 4 months ago
parent
commit
4cb976c384
  1. 2
      src/components/nodes/BaseNode.tsx

2
src/components/nodes/BaseNode.tsx

@ -305,7 +305,7 @@ export function BaseNode({
setHoveredNodeId(null);
}}
>
<div ref={contentRef} style={{ contain: "layout style paint" }} className={contentClassName ?? (fullBleed ? "flex-1 min-h-0 relative" : "px-3 pb-4 flex-1 min-h-0 overflow-hidden flex flex-col")}>{children}</div>
<div ref={contentRef} style={{ contain: "layout style" }} className={contentClassName ?? (fullBleed ? "flex-1 min-h-0 relative" : "px-3 pb-4 flex-1 min-h-0 overflow-hidden flex flex-col")}>{children}</div>
</div>
{settingsPanel && (
<div ref={settingsPanelRef}>

Loading…
Cancel
Save