Skip to content

fix(home): 英文首页简介每句单独一行 - #12

Merged
Kepler2024 merged 1 commit into
mainfrom
fix/home-description-wrap
Nov 26, 2026
Merged

Kepler2024 merged 1 commit into
mainfrom
fix/home-description-wrap

Conversation

@Kepler2024

Copy link
Copy Markdown
Owner

英文首页简介的第二行放了两句话(约 160 个字符),超过了 .index-description 的 max-width: 48rem,所以在所有桌面宽度下都会从句子中间断行(例如 "verified by real / toolchains.")。

改动

  • 在两句之间加 <br class="desc-br" />,三句各占一行,并删掉末尾多余的 <br> 和空行
  • 重拍 README 截图 docs/images/website.png,与当前首页一致

验证

  • 用 headless Chrome 在 769、820、900、1024、1280、1440、1920px 下逐句测量行数:修复前英文第二段在每个宽度下都是 2 行,修复后每句 1 行;中文首页本来就没问题
  • npm run build 和 npm run check 通过

🤖 Generated with Claude Code

The second line of the English hero description held two sentences
(about 160 characters), wider than the paragraph's 48rem max-width, so
it wrapped mid-sentence at every desktop width. Break between the
sentences and drop the trailing <br>. Retake the README screenshot to
match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Kepler2024
Kepler2024 merged commit ffe8400 into main Nov 26, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant