From 21c85c4dd11f25ac2146e6479634546febf467ed Mon Sep 17 00:00:00 2001 From: Suzumiya Date: Mon, 14 Sep 2026 19:07:22 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=E6=95=B4=E7=90=86=E7=94=BB=E5=B8=83?= =?UTF-8?q?=E3=80=8D=E7=A7=BB=E5=87=BA=E3=80=8C=E8=B5=84=E6=BA=90=E6=8E=92?= =?UTF-8?q?=E5=88=97=E6=96=B9=E5=BC=8F=E3=80=8D=E5=88=86=E7=BB=84=EF=BC=8C?= =?UTF-8?q?=E6=88=90=E4=B8=BA=E7=8B=AC=E7=AB=8B=E5=8A=A8=E4=BD=9C=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - index.tsx:把「整理画布」从 aria-label=\"资源排列方式\" 的 role=group 里搬出来, 紧跟排序 tab 之后、作为 game-workbench-view-actions 动作区里的独立按钮, 外观直接复用该容器既有动作按钮样式(有边圆角 + secondary 填充),不新增 CSS - index.tsx:语义与行为一字未改——aria-label=\"整理画布\"、disabled={!resourceLayoutReady}、 aria-busy={resourceLayoutSaving}、onClick 仍调 activeResourceLayout.rederiveNow(), 成功/失败反馈仍复用既有 resourceLayoutNotice / resourceLayoutSaving,changed 门保留 - resourceCanvasManualLayout.test.tsx:新增结构断言——「资源排列方式」分组里只有 「按依赖 / 按类型」两枚按钮、「整理画布」不在该容器内也不在 .game-resource-sort-tabs 里, 同时仍是动作区内可用按钮(布局就绪后不再 disabled) --- .../src/view/project-development/index.tsx | 35 ++++++++------ .../tests/resourceCanvasManualLayout.test.tsx | 48 +++++++++++++++++++ 2 files changed, 68 insertions(+), 15 deletions(-) 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 14fa858a9..1b03734ec 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 @@ -7198,22 +7198,27 @@ export default function ProjectDevelopmentView({