fix(liveview): allow zoom-out to 0.25 so large infra fits

View-only mode set no minZoom, so React Flow defaulted to 0.5 and big
canvases couldn't zoom out far enough to fit. Match the editor's bounds
(minZoom 0.25, maxZoom 2.5). Add a regression test asserting the props.

ha-relevant: maybe
This commit is contained in:
Pouzor
2026-06-04 13:00:29 +02:00
parent 6784b8f6be
commit f56dfea838
2 changed files with 21 additions and 1 deletions
+2
View File
@@ -158,6 +158,8 @@ function LiveViewCanvas() {
elementsSelectable={false}
panOnDrag
zoomOnScroll
minZoom={0.25}
maxZoom={2.5}
colorMode={theme.colors.reactFlowColorMode}
connectionMode={ConnectionMode.Loose}
onNodeClick={onNodeClick}