diff --git a/src/renderer/components/Experiment/Workflows/WorkflowCanvas.tsx b/src/renderer/components/Experiment/Workflows/WorkflowCanvas.tsx index c222b8adff906dd2f30b5c7a6401d4d84df47664..4c2ac430c0c6c8d5f57b0abbc68da037a7166f46 100644 --- a/src/renderer/components/Experiment/Workflows/WorkflowCanvas.tsx +++ b/src/renderer/components/Experiment/Workflows/WorkflowCanvas.tsx @@ -1,4 +1,5 @@ import { Background, ControlButton, Controls, ReactFlow } from '@xyflow/react'; +import { PlusCircleIcon } from 'lucide-react'; import React from 'react'; function generateNodes(workflow: any) { @@ -64,6 +65,11 @@ export default function WorkflowCanvas({ selectedWorkflow }) { * </ControlButton> </Controls> + <PlusCircleIcon + style={{ position: 'absolute', bottom: '20px', right: '20px' }} + strokeWidth={2} + size={32} + /> </ReactFlow> ); } diff --git a/src/renderer/styles.css b/src/renderer/styles.css index 17f1e6903f26897d62778ab714481c7b9eacadf4..37e0cdb16288045ac7db7516d58d59ecebbe53ac 100644 --- a/src/renderer/styles.css +++ b/src/renderer/styles.css @@ -215,4 +215,11 @@ textarea { margin: 0 5px 5px 0; font-size: 14px; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif +} + +/* React flow asks us not to hide attribution but it is +MIT licensed so we have the right to modify the source +code if we want */ +.react-flow__attribution a { + display: none; } \ No newline at end of file