fix(web): enlarge step handles and mark them nodrag for connections
Co-authored-by: Nasyarobby Putra <nasyarobby@gmail.com>
This commit is contained in:
@@ -284,7 +284,7 @@ function GraphTabInner({
|
|||||||
onEdgesDelete={onEdgesDelete}
|
onEdgesDelete={onEdgesDelete}
|
||||||
nodesConnectable={!disabled}
|
nodesConnectable={!disabled}
|
||||||
nodesDraggable={!disabled}
|
nodesDraggable={!disabled}
|
||||||
connectionRadius={40}
|
connectionRadius={80}
|
||||||
defaultEdgeOptions={{ type: "smoothstep" }}
|
defaultEdgeOptions={{ type: "smoothstep" }}
|
||||||
proOptions={{ hideAttribution: false }}
|
proOptions={{ hideAttribution: false }}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export function TriggerGraphNode({ data, selected }) {
|
|||||||
<p className="font-mono text-[11px] opacity-70 truncate" title={data.label}>
|
<p className="font-mono text-[11px] opacity-70 truncate" title={data.label}>
|
||||||
{data.label}
|
{data.label}
|
||||||
</p>
|
</p>
|
||||||
<Handle type="source" position={Position.Right} isConnectable={false} className="!h-3 !w-3" />
|
<Handle type="source" position={Position.Right} isConnectable={false} className="!h-3 !w-3 opacity-40" />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -33,7 +33,7 @@ export function StepGraphNode({ data, selected }) {
|
|||||||
type="target"
|
type="target"
|
||||||
position={Position.Left}
|
position={Position.Left}
|
||||||
id="in"
|
id="in"
|
||||||
className="!h-3 !w-3 !bg-primary"
|
className="nodrag nopan !h-3.5 !w-3.5 !bg-primary"
|
||||||
isConnectable
|
isConnectable
|
||||||
/>
|
/>
|
||||||
<div className="flex items-center gap-1">
|
<div className="flex items-center gap-1">
|
||||||
@@ -62,7 +62,7 @@ export function StepGraphNode({ data, selected }) {
|
|||||||
type="source"
|
type="source"
|
||||||
position={Position.Right}
|
position={Position.Right}
|
||||||
id="out"
|
id="out"
|
||||||
className="!h-3 !w-3 !bg-primary"
|
className="nodrag nopan !h-3.5 !w-3.5 !bg-primary"
|
||||||
isConnectable
|
isConnectable
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user