From 89e842d077cc40f346df49ac8b22133f310e8be5 Mon Sep 17 00:00:00 2001 From: Suzumiya Date: Tue, 15 Sep 2026 17:44:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=85=B7=E8=B0=83=E7=94=A8=E6=8A=98?= =?UTF-8?q?=E5=8F=A0=E5=9D=97=E6=A0=B7=E5=BC=8F=EF=BC=9A=E6=95=B4=E8=A1=8C?= =?UTF-8?q?=E6=B5=85=E5=BA=95=E5=9D=97=E5=A4=B4=20+=20=E5=8F=B3=E5=AF=B9?= =?UTF-8?q?=E9=BD=90=E8=80=97=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - styles.css 工具调用区块重写:块头做成一整行浅底圆角条目(图标 / 汇总 / 结束时间 / 总用时 / 折角),只用现有 --platform-* 变量 - 展开态每行一条:行内不换行、超长命令 text-overflow: ellipsis,耗时 margin-left: auto 右对齐、tabular-nums 对齐数字 - 行二级明细改用 agent-tool-call-row-command / -output / -changes 样式,命令与输出沿用中性底 + 细边框 - 补 [hidden] 显式 display: none,避免折叠态被 display: grid 顶掉后仍占位 - 展开箭头只做 rotate 过渡,不引入布局跳动;failed 行用 --platform-button-danger-text - 删除旧 agent-tool-call-* 卡片样式;输入盒 / 面板留白 / 顶栏相关规则未动 --- apps/ai-game-creator-shell/src/styles.css | 187 ++++++++++++++++------ 1 file changed, 139 insertions(+), 48 deletions(-) diff --git a/apps/ai-game-creator-shell/src/styles.css b/apps/ai-game-creator-shell/src/styles.css index 57b125c85..13cc06f9b 100644 --- a/apps/ai-game-creator-shell/src/styles.css +++ b/apps/ai-game-creator-shell/src/styles.css @@ -11293,59 +11293,64 @@ button.design-workspace-tree__entry:hover, } /* ============================================================ - 工具调用卡片(2026-09):Codex 风格可折叠卡片 + 工具调用折叠块(2026-09):一回合一个块,Codex 风格 ============================================================ 契约见 `docs/technical/【技术方案】GameAgent对话工具调用卡片-2026-09-14.md`: - 折叠态一行摘要(图标 / 标题 / 摘要 / 状态点 / 状态 / 折角),展开态看命令、文件明细与输出。 + 块头一行浅底圆角条目(图标 / 汇总 / 结束时间 / 总用时 / 折角),展开态每行一条工具, + 行右侧是对齐的耗时,行可二级展开看命令、文件明细与输出。 折叠由 `