Skip to content

repo: wrap long words in commit message bodies - #8606

Merged
unknwon merged 2 commits into
flamego-serverfrom
commit-long-words
Nov 16, 2026
Merged

unknwon merged 2 commits into
flamego-serverfrom
commit-long-words

Conversation

@unknwon

@unknwon unknwon commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Describe the pull request

Stacked on #8542. Fixes #7826.

The commit page shows the message body in a <pre> with whitespace-pre-wrap, which wraps only at spaces. A word longer than the column, e.g., a file path, ran past it, and at 375px the page scrolled sideways. The body now has wrap-anywhere, as web/DESIGN.md asks for long text, the same as the commit list subjects and plain-text READMEs.

Commit page, body with a long path Before After
375px Page 738px wide, body 722px in a 343px column Page 375px wide, body wraps in its 343px column
1280px Not measured Body stays in its 768px column

Verification

  • Pushed a commit whose subject and body contain long paths, opened it with Vite at 375px and 1280px, and compared scrollWidth with the viewport and the body column before and after. Screenshots inspected at both widths.
  • moon run web:lint passes.

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code or have provided the test plan.

A word longer than the commit message column, e.g., a file path, ran past
the column and made the commit page scroll sideways.
@unknwon
unknwon merged commit b5a30c0 into flamego-server Nov 16, 2026
2 checks passed
@unknwon
unknwon deleted the commit-long-words branch November 16, 2026 02:08
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