fix(embedded): viewport options breaking autolayout#3596
fix(embedded): viewport options breaking autolayout#3596icecrasher321 merged 1 commit intostagingfrom
Conversation
PR SummaryLow Risk Overview Adds Written by Cursor Bugbot for commit 75de6aa. Configure here. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR fixes a bug where the embedded canvas was using the same
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant App as Workflow Page
participant RF as ReactFlow
participant onInit as onInit Callback
participant FV as fitView()
App->>RF: Render <ReactFlow fitViewOptions={embedded ? embeddedFitViewOptions : reactFlowFitViewOptions}>
RF->>onInit: Fire onInit(instance)
onInit->>FV: requestAnimationFrame → instance.fitView(embedded ? embeddedFitViewOptions : reactFlowFitViewOptions)
Note over FV: Embedded: { padding:0.15, maxZoom:0.85, minZoom:0.35 }<br/>Normal: { padding:0.6, maxZoom:1.0 }
FV-->>RF: Viewport applied
RF-->>App: setIsCanvasReady(true) → canvas visible
Last reviewed commit: 75de6aa |
Summary
Separate out embedded viewport options.
Type of Change
Testing
Tested manually
Checklist