From 78e210f98dc43c112adec20599d6aaa39b745d63 Mon Sep 17 00:00:00 2001 From: Emir Karabeg Date: Mon, 17 Feb 2025 03:34:00 -0800 Subject: [PATCH] fix(landing): landing layout for reactflow canvas --- app/(landing)/hero-workflow.tsx | 18 ++++++++++-------- app/(landing)/landing.tsx | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/(landing)/hero-workflow.tsx b/app/(landing)/hero-workflow.tsx index d8fd73ef2d..fa0cfcd198 100644 --- a/app/(landing)/hero-workflow.tsx +++ b/app/(landing)/hero-workflow.tsx @@ -24,7 +24,7 @@ const initialNodes: Node[] = [ { id: 'api', type: 'heroBlock', - position: { x: 50, y: -150 }, + position: { x: -150, y: -100 }, data: { type: 'api', name: 'API Block', @@ -35,7 +35,7 @@ const initialNodes: Node[] = [ { id: 'router', type: 'heroBlock', - position: { x: 100, y: -25 }, + position: { x: 125, y: -50 }, data: { type: 'router', name: 'Router', @@ -46,7 +46,7 @@ const initialNodes: Node[] = [ { id: 'agent1', type: 'heroBlock', - position: { x: 400, y: -75 }, + position: { x: 400, y: -100 }, data: { type: 'agent', name: 'Agent 1', @@ -57,7 +57,7 @@ const initialNodes: Node[] = [ { id: 'agent2', type: 'heroBlock', - position: { x: 400, y: 25 }, + position: { x: 400, y: 0 }, data: { type: 'agent', name: 'Agent 2', @@ -108,7 +108,7 @@ export function HeroWorkflow() { const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges) return ( -
+