From e72637789cf3f13b1be6ae79e2cb255e80855f9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 18 Sep 2026 17:11:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E9=A2=84=E8=A7=88=E6=A0=91?= =?UTF-8?q?=E5=81=8F=E7=A7=BB=E5=9D=90=E6=A0=87=20=E4=BB=85=E5=B0=86?= =?UTF-8?q?=E6=9C=89=E9=99=90=E5=81=8F=E7=A7=BB=E9=87=8F=E7=BA=B3=E5=85=A5?= =?UTF-8?q?=E7=94=BB=E5=B8=83=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../view/ui-editor/components/preview/PreviewWorkspace.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/components/preview/PreviewWorkspace.tsx b/apps/ai-game-creator-shell/src/view/ui-editor/components/preview/PreviewWorkspace.tsx index afd4beb7c..049005d99 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/components/preview/PreviewWorkspace.tsx +++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/preview/PreviewWorkspace.tsx @@ -134,7 +134,9 @@ export function PreviewWorkspace({ image, width, height, - validOffset: Boolean(item.root.offset?.min), + validOffset: item.root.offset.min.every((value) => + Number.isFinite(value), + ), }; }), [images, uiTrees],