From f883d4bf2e7bd857a3d821b6fe8766616055e370 Mon Sep 17 00:00:00 2001 From: suzmii Date: Fri, 4 Sep 2026 15:13:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=8E=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E9=A6=96=E6=AC=A1=E8=BF=9B=E5=85=A5=E4=B8=BB?= =?UTF-8?q?=E7=94=BB=E5=B8=83=E7=9A=84=E9=94=99=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除主画布入场缩放动画避免测量和终态不一致 无效缩略卡测量结果不再直接展示共享场景 --- apps/ai-game-creator-shell/src/styles.css | 16 +--------------- .../src/view/project-development/index.tsx | 6 +++++- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/apps/ai-game-creator-shell/src/styles.css b/apps/ai-game-creator-shell/src/styles.css index f375a7c05..081206592 100644 --- a/apps/ai-game-creator-shell/src/styles.css +++ b/apps/ai-game-creator-shell/src/styles.css @@ -5324,7 +5324,6 @@ iframe.preview-frame { background: radial-gradient(#eaded8 0.8px, transparent 0.8px) 0 0 / 18px 18px, linear-gradient(145deg, #fffdfa 0%, #fff8f2 100%); - animation: resource-book-main-settle 360ms ease both; } .game-resource-book-main-heading { @@ -5714,21 +5713,8 @@ iframe.preview-frame { } } -@keyframes resource-book-main-settle { - from { - opacity: 0.6; - transform: scale(0.98); - } - to { - opacity: 1; - transform: scale(1); - } -} - @media (prefers-reduced-motion: reduce) { - .game-resource-book-main, - .game-resource-book-transition-preview-card, - .game-resource-book-transition-card { + .game-resource-book-main { animation: none; } } diff --git a/apps/ai-game-creator-shell/src/view/project-development/index.tsx b/apps/ai-game-creator-shell/src/view/project-development/index.tsx index ab85929d9..3b4ccbd04 100644 --- a/apps/ai-game-creator-shell/src/view/project-development/index.tsx +++ b/apps/ai-game-creator-shell/src/view/project-development/index.tsx @@ -1011,10 +1011,14 @@ function ResourceBookScene({ list.push(resource); resourcesByCategory.set(resource.category, list); }); + const overviewReady = visibleCategoryOrder.every((category) => { + const rect = overviewRects.get(category); + return Boolean(rect && rect.width > 0 && rect.height > 0); + }); return (
{visibleCategoryOrder.map((category) => { const rect = overviewRects.get(category);