修复窗口变矮时对话状态条被挤扁
Project CI / AI game creator shell Rust crates (pull_request) Successful in 1m37s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 2m9s
Project CI / Backend tests (pull_request) Successful in 3m48s
Project CI / Frontend tests (pull_request) Successful in 2m1s
Project CI / Native shell tests (pull_request) Successful in 5m48s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 9m4s
Project CI / AI game creator shell web tests (pull_request) Successful in 1m34s
Project CI / Repository checks (pull_request) Successful in 2m5s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Successful in 10m48s

- apps/ai-game-creator-shell/src/styles.css 给 .project-chat-conversation > .project-chat-process-card 补 flex: 0 0 auto:卡片带 overflow: hidden,按 flex 规范该项自动最小尺寸归零,窗口压矮时会先被压缩(实测 300px 高挤到 33px、240px 高 24px,文字被裁),而这一列里只有消息列表该被压缩
- apps/ai-game-creator-shell/src/styles.css 把这条卡片的会话列几何规则从文件末尾移到「面板纵向布局兜底」的 flex 链旁边,内缩与不可压缩合并在同一条规则里,注释说明为什么必须是 0 0 auto
- apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts 卡片契约补 flex: 0 0 auto 断言
This commit is contained in:
2026-09-24 16:20:57 +08:00
parent ec3a187dd7
commit 7cdbc61ffb
2 changed files with 18 additions and 11 deletions
+15 -11
View File
@@ -12282,6 +12282,21 @@ button.design-workspace-tree__entry:hover,
flex: 1 1 auto;
}
/* 过程卡陶泥儿正在处理渲染在消息列表****紧贴输入盒上方固定在输入框上面
不随消息滚走它不再继承消息列表的左右 16px 内缩所以要自己补齐才能与消息内容
输入盒两侧对齐离开列表后列表的 padding-bottom 也不再作用于它与最后一条消息的间距
同样由这里给
`flex: 0 0 auto` 是这条链上的承重项卡片带 `overflow: hidden`flex 项的自动最小尺寸
因此归零窗口变矮时它会先被挤扁文字被裁掉实测高度 300px 时压到 33px240px
24px而这一列里只有消息列表该被压缩 */
.game-workbench-chat
.project-chat-surface.is-direct-codex
.project-chat-conversation
> .project-chat-process-card {
flex: 0 0 auto;
margin: 12px 16px 8px;
}
/* ============================================================
工具调用折叠块2026-09一回合一个块Codex 风格
============================================================
@@ -12576,17 +12591,6 @@ button.design-workspace-tree__entry:hover,
justify-content: flex-end;
}
/* 过程卡陶泥儿正在处理现在渲染在消息列表****紧贴输入盒上方固定在输入框上面
不随消息滚走它不再继承消息列表的左右 16px 内缩所以要自己补齐才能与消息内容
输入盒两侧对齐离开列表后列表的 padding-bottom 也不再作用于它与最后一条消息的间距
同样由这里给 */
.game-workbench-chat
.project-chat-surface.is-direct-codex
.project-chat-conversation
> .project-chat-process-card {
margin: 12px 16px 8px;
}
/* 工具调用折叠块块头改成两行第一行图标 + 汇总超长省略第二行状态 + 用时箭头右侧跨两行
窄面板里一行塞不下汇总会被截断"进行中"还会折成两行拆成两行后每段都有自己的宽度 */
.game-workbench-chat
@@ -6373,8 +6373,11 @@ export function registerProjectWorkbenchFoundationTests() {
expect(userMessageRule).toContain('color: var(--platform-text-base);');
// 过程卡渲染在消息列表的**兄弟**位置(列表外,紧贴输入盒上方),拿不到列表的
// `padding: 14px 16px 0`,左右内缩与上下间距只能自己给:左右必须与列表的 16px 对齐。
// 同一列里它是定高条目:窗口变矮时只有消息列表可以被压缩,卡片带 `overflow: hidden`
// 时自动最小尺寸归零,少了 `flex: 0 0 auto` 就会被挤扁、文字被裁掉。
expect(processCardRules.length).toBe(1);
expect(processCardRules[0]).toContain('margin: 12px 16px 8px;');
expect(processCardRules[0]).toContain('flex: 0 0 auto;');
});
it('enables the run presentation and renders registered images in the resource viewer', async () => {