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

Co-authored-by: Leslie Cruz <lelcruz@users.noreply.github.com>
Co-authored-by: Bently <tomnoon9@gmail.com>
pull/7756/head
lelcruz 2024-08-08 03:54:37 -05:00 committed by GitHub
parent 335fea8605
commit 8131fc385b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions
rnd/autogpt_builder/src/components

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