From e82df96e569c50ed832542436ce065a8e36ab663 Mon Sep 17 00:00:00 2001 From: Pratim Sadhu Date: Thu, 30 Jan 2025 04:51:56 -0500 Subject: [PATCH] Fix: Allow further zooming out in the builder (#9325) (#9368) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The current minimum zoom level restricts zooming out fully. I reduced the minZoom level to allow more flexible zooming out for users. ### Changes 🏗️ Reduced minZoom from 0.2 to 0.1 in the ReactFlow component to allow further zooming out. ### Checklist 📋 #### For code changes: - [ x ] I have clearly listed my changes in the PR description - [ x ] I have made a test plan - [ x ] I have tested my changes according to the test plan: - [ x ] Tested with different elements and zoom ranges to confirm its a smooth transition - [ x ] Checked that canvas and all nodes remain unchanged and interactive Co-authored-by: Bently --- autogpt_platform/frontend/src/components/Flow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt_platform/frontend/src/components/Flow.tsx b/autogpt_platform/frontend/src/components/Flow.tsx index df6a6b7b1d4c..3543b5ea1f28 100644 --- a/autogpt_platform/frontend/src/components/Flow.tsx +++ b/autogpt_platform/frontend/src/components/Flow.tsx @@ -660,7 +660,7 @@ const FlowEditor: React.FC<{ onNodeDragStop={onNodeDragEnd} onNodeDragStart={onNodeDragStart} deleteKeyCode={["Backspace", "Delete"]} - minZoom={0.2} + minZoom={0.1} maxZoom={2} className="dark:bg-slate-900" >