From b9df3548086db6e95fee0a2f556ca2d69cad9ed4 Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Sat, 4 Apr 2026 16:38:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9E=81=E7=AE=80?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E6=80=9D=E8=80=83=E5=86=85=E5=AE=B9=E4=B8=8E?= =?UTF-8?q?SVG=E5=9B=BE=E6=A0=87=E5=AF=B9=E9=BD=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 使用相对单位调整思考内容的垂直对齐 - 添加负margin-top让第一行文字中心与SVG图标中心对齐 - 计算公式:(1em - 1.7em) / 2,基于line-height自动适配 - 不影响工具步骤的对齐(工具header的line-height为1) Co-Authored-By: Claude Sonnet 4.5 --- static/src/components/chat/MinimalBlocks.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/src/components/chat/MinimalBlocks.vue b/static/src/components/chat/MinimalBlocks.vue index 05071a5..269e346 100644 --- a/static/src/components/chat/MinimalBlocks.vue +++ b/static/src/components/chat/MinimalBlocks.vue @@ -535,6 +535,8 @@ watch(() => props.actions, () => { margin: 0; padding: 0; display: block; + /* 让第一行文字中心和 SVG 中心对齐:向上移动半个行高减去半个字高 */ + margin-top: calc((1em - 1.7em) / 2); } /* 工具内容 */