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>pull/7756/head
parent
335fea8605
commit
8131fc385b
rnd/autogpt_builder/src/components
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue