Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

fix(builder): Show X button on edge line hover, not just button hover (#12083)

Otto1b91327034fc
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/edges/CustomEdge.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/edges/CustomEdge.tsx
index 3b6425a7c6..3882d01598 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/edges/CustomEdge.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/edges/CustomEdge.tsx
@@ -63,8 +63,19 @@ const CustomEdge = ({
return (
<>
+ <path
+ d={edgePath}
+ fill="none"
+ stroke="black"
+ strokeOpacity={0}
+ strokeWidth={20}
+ className="react-flow__edge-interaction cursor-pointer"
+ onMouseEnter={() => setIsHovered(true)}
+ onMouseLeave={() => setIsHovered(false)}
+ />
<BaseEdge
path={edgePath}
+ interactionWidth={0}
markerEnd={markerEnd}
className={cn(
isStatic && "!stroke-[1.5px] [stroke-dasharray:6]",