Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

fix(workflow): start a fresh graph clear of the floating toolbar

Josh Corbettf8abbe1b3f04
diff --git a/invokeai/frontend/webv2/src/features/workflow/ui/editor/WorkflowEditorView.tsx b/invokeai/frontend/webv2/src/features/workflow/ui/editor/WorkflowEditorView.tsx
index 90dd5654af..2ad4d82675 100644
--- a/invokeai/frontend/webv2/src/features/workflow/ui/editor/WorkflowEditorView.tsx
+++ b/invokeai/frontend/webv2/src/features/workflow/ui/editor/WorkflowEditorView.tsx
@@ -113,7 +113,9 @@ const SNAP_GRID: [number, number] = [24, 24];
const DELETE_KEY_CODES = ['Backspace', 'Delete'];
const DEFAULT_EDGE_OPTIONS = { style: { strokeWidth: 2 } };
-const DEFAULT_VIEWPORT = { x: 0, y: 0, zoom: 1 } as const;
+// A fresh graph starts clear of the floating toolbar in the left gutter, so
+// its first column's node controls are not covered before the user pans.
+const DEFAULT_VIEWPORT = { x: 56, y: 0, zoom: 1 } as const;
interface WorkflowFlowModel {
edges: WorkflowFlowEdge[];