fix(builder): Added option to pan view to center agents on build screen (#7742)

Co-authored-by: Leslie Cruz <lelcruz@users.noreply.github.com>
Co-authored-by: Bently <tomnoon9@gmail.com>
This commit is contained in:
lelcruz
2024-08-08 03:54:37 -05:00
committed by GitHub
parent 335fea8605
commit 8131fc385b

View File

@@ -17,6 +17,7 @@ import ReactFlow, {
Connection,
EdgeTypes,
MarkerType,
Controls,
} from "reactflow";
import "reactflow/dist/style.css";
import CustomNode, { CustomNodeData } from "./CustomNode";
@@ -880,6 +881,7 @@ const FlowEditor: React.FC<{
onNodeDragStart={onNodesChangeStart}
onNodeDragStop={onNodesChangeEnd}
>
<Controls />
<ControlPanel className="absolute z-10" controls={editorControls}>
<BlocksControl blocks={availableNodes} addBlock={addNode} />
<SaveControl