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(frontend): Make pins smaller and fix hover area and highlight for input pins (#8941)
Krzysztof Czerwinski7a9115db187e
diff --git a/autogpt_platform/frontend/src/components/CustomEdge.tsx b/autogpt_platform/frontend/src/components/CustomEdge.tsxindex 6cf767d327..4f0d3def7d 100644--- a/autogpt_platform/frontend/src/components/CustomEdge.tsx+++ b/autogpt_platform/frontend/src/components/CustomEdge.tsx@@ -49,7 +49,7 @@ export function CustomEdge({const { svgPath, length, getPointForT, getTForDistance } = useBezierPath(sourceX - 5,sourceY - 5,- targetX - 9,+ targetX + 3,targetY - 5,);const { deleteElements } = useReactFlow<Node, CustomEdge>();diff --git a/autogpt_platform/frontend/src/components/NodeHandle.tsx b/autogpt_platform/frontend/src/components/NodeHandle.tsxindex fc57360bd9..97229c6979 100644--- a/autogpt_platform/frontend/src/components/NodeHandle.tsx+++ b/autogpt_platform/frontend/src/components/NodeHandle.tsx@@ -45,13 +45,13 @@ const NodeHandle: FC<HandleProps> = ({</div>);- const Dot = ({ className = "" }) => {+ const Dot = () => {const color = isConnected? getTypeBgColor(schema.type || "any"): "border-gray-300";return (<div- className={`${className} ${color} m-1 h-6 w-6 rounded-full border-2 bg-white transition-colors duration-100 group-hover:bg-gray-300`}+ className={`${color} m-1 h-4 w-4 rounded-full border-2 bg-white transition-colors duration-100 group-hover:bg-gray-300`}/>);};@@ -64,10 +64,10 @@ const NodeHandle: FC<HandleProps> = ({data-testid={`input-handle-${keyName}`}position={Position.Left}id={keyName}- className="-ml-[26px]"+ className="group -ml-[38px]"><div className="pointer-events-none flex items-center">- <Dot className={`-ml-2 mr-2`} />+ <Dot />{label}</div></Handle>