Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: inconsistent behaviour of zoom in button and shortcut (#27944)
非法操作b02165ffe6fa
diff --git a/web/app/components/workflow/hooks/use-shortcuts.ts b/web/app/components/workflow/hooks/use-shortcuts.tsindex fa9b0190112..e8c69ca9b52 100644--- a/web/app/components/workflow/hooks/use-shortcuts.ts+++ b/web/app/components/workflow/hooks/use-shortcuts.ts@@ -44,17 +44,17 @@ export const useShortcuts = (): void => {fitView,} = useReactFlow()- // Zoom out to a minimum of 0.5 for shortcut+ // Zoom out to a minimum of 0.25 for shortcutconst constrainedZoomOut = () => {const currentZoom = getZoom()- const newZoom = Math.max(currentZoom - 0.1, 0.5)+ const newZoom = Math.max(currentZoom - 0.1, 0.25)zoomTo(newZoom)}- // Zoom in to a maximum of 1 for shortcut+ // Zoom in to a maximum of 2 for shortcutconst constrainedZoomIn = () => {const currentZoom = getZoom()- const newZoom = Math.min(currentZoom + 0.1, 1)+ const newZoom = Math.min(currentZoom + 0.1, 2)zoomTo(newZoom)}