提交对话区样式收尾(含另一路未提交的 Markdown 间距修正)
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Failing after 2m11s
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Failing after 2m44s
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Failing after 2m39s
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Failing after 2m42s
Project CI / Backend tests (pull_request) Failing after 10s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 2m43s
Project CI / Repository checks (pull_request) Failing after 10s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 1m59s
Project CI / Frontend tests (pull_request) Failing after 3m36s
Project CI / AI game creator shell web tests (pull_request) Failing after 3m33s
Project CI / Native shell tests (pull_request) Successful in 7m15s

- styles.css:移除 .message 的 white-space: pre-wrap(Markdown 块之间的换行文本节点会被渲染成真实空行,列表项之间出现大段空白)
- styles.css:对话正文行高统一并钉死 1.5(面板里存在更长的选择器链,普通 .message p 会被压过去)
- styles.css:列表 ul/ol 的默认块间距显式清零,避免与 p 的 margin 叠加成"假空行"
- styles.css:流式思考过程折叠块样式(pre-wrap 换行、1.5 行高、无横向滚动条)
- 说明:本文件里同时包含另一路会话未提交的 Markdown 间距改动,一并提交以免丢失
This commit is contained in:
2026-09-16 00:12:36 +08:00
parent 656dd2be2a
commit 9b7f7f110c
+64 -3
View File
@@ -4415,9 +4415,11 @@ h2 {
background: #f8fafd;
}
/* 这里不能加 `white-space: pre-wrap`Markdown 渲染出来的块之间会带换行文本节点
pre-wrap 会把那些 `\n` 变成真实的空行表现就是列表项之间出现大段空白
需要保留换行的地方流式原文行内代码各自已经有 `whitespace-pre-wrap` */
.message {
overflow-wrap: anywhere;
white-space: pre-wrap;
}
.message--user {
@@ -8739,6 +8741,30 @@ iframe.preview-frame {
line-height: 1.3;
}
/* ReactMarkdown 的列表节点必须显式清零默认块间距否则 p/ul margin
会叠加成截图中的假空行真正的 Markdown 空行仍由段落结构保留 */
.game-workbench-chat
.project-supervisor-surface.is-direct-codex
.project-supervisor-message-list
.message--assistant
ul,
.game-workbench-chat
.project-supervisor-surface.is-direct-codex
.project-supervisor-message-list
.message--assistant
ol {
margin-block: 0.65em;
}
.game-workbench-chat
.project-supervisor-surface.is-direct-codex
.project-supervisor-message-list
.message--assistant
li
> p {
margin-block: 0;
}
.game-workbench-chat
.project-supervisor-surface.is-direct-codex
.project-supervisor-message-list
@@ -11988,7 +12014,7 @@ button.design-workspace-tree__entry:hover,
padding-left: 18px;
color: var(--platform-text-soft);
font-size: 12px;
line-height: 1.6;
line-height: 1.5;
}
/* 工具调用折叠块块头改成两行第一行图标 + 汇总超长省略第二行状态 + 用时箭头右侧跨两行
@@ -12089,5 +12115,40 @@ button.design-workspace-tree__entry:hover,
overflow-wrap: anywhere;
font-family: inherit;
font-size: 12px;
line-height: 1.6;
line-height: 1.5;
}
/* 对话正文的行高统一为 1.5段落列表列表项一致
面板里原本有 1.7 / 1.6 / 1.5 / 1.4 多套值段落与列表各自命中不同规则
看起来"上下行高不一样" */
.message,
.message p,
.message ul,
.message ol,
.message li {
line-height: 1.5;
}
/* 对话正文行高钉死 1.5面板里存在更长的选择器链在给正文定行高
简单 `.message p` 会被压过去所以这里用同一条链 + `!important`
作用域只在右侧对话面板内不外溢段落列表列表项一律一致 */
.game-workbench-chat
.project-supervisor-surface.is-direct-codex
.project-supervisor-message-list
.message,
.game-workbench-chat
.project-supervisor-surface.is-direct-codex
.project-supervisor-message-list
.message p,
.game-workbench-chat
.project-supervisor-surface.is-direct-codex
.project-supervisor-message-list
.message ul,
.game-workbench-chat
.project-supervisor-surface.is-direct-codex
.project-supervisor-message-list
.message ol,
.game-workbench-chat
.project-supervisor-surface.is-direct-codex
.project-supervisor-message-list
.message li {
line-height: 1.5 !important;
}