Changed background to white and add an effect on it

This commit is contained in:
SwiftyOS
2024-08-08 15:50:59 +02:00
parent 85d895ef77
commit c577d04692
2 changed files with 3 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ export default function Home() {
return (
<FlowEditor
className="flow-container w-full min-h-[86vh] border border-gray-300 dark:border-gray-700 rounded-lg bg-secondary"
className="flow-container w-full min-h-[86vh] border border-gray-300 dark:border-gray-700 rounded-lg"
flowID={query.get("flowID") ?? query.get("templateID") ?? undefined}
template={!!query.get("templateID")}
/>

View File

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