Skip to content

Commit 7ba8436

Browse files
Spectualclaude
andcommitted
fix: CLI 动画换行时布局偏移 — 改用固定 height 替代 minHeight
将命令行容器从 minHeight: "2.6em" 改为 height: "3.6em" + overflow: hidden。 minHeight 是最小值,两行文字(~3.3em)会突破该限制导致容器扩展, 固定 height 确保容器尺寸始终不变,下方组件不再位移。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent cff5aa3 commit 7ba8436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ProfileSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const AutoTypeCLI = () => {
117117
borderTop: "1px solid var(--term-border)",
118118
}}
119119
>
120-
<div style={{ display: "flex", alignItems: "flex-start", gap: "6px", flexWrap: "wrap", minHeight: "2.6em" }}>
120+
<div style={{ display: "flex", alignItems: "flex-start", gap: "6px", flexWrap: "wrap", height: "3.6em", overflow: "hidden" }}>
121121
<span style={{ color: "var(--term-green)" }}>spectual</span>
122122
<span style={{ color: "var(--term-dim)" }}>@</span>
123123
<span style={{ color: "var(--term-blue)" }}>github.io</span>

0 commit comments

Comments
 (0)