Skip to content

revision: wrap long commit-message strings so they don't overflow#14

Merged
jelmer merged 1 commit into
masterfrom
break-long
Apr 22, 2026
Merged

revision: wrap long commit-message strings so they don't overflow#14
jelmer merged 1 commit into
masterfrom
break-long

Conversation

@jelmer

@jelmer jelmer commented Apr 22, 2026

Copy link
Copy Markdown
Member

The commit-message block sits inside a 493px floated column, with the files-changed list floated next to it. white-space: pre-wrap alone only wraps on whitespace, so a long URL or other unbreakable string in the message spilled over and obscured the adjacent files list. Add overflow-wrap: anywhere + word-break: break-word on .information so the message stays inside its column.

Also lift the .information styling out of the inline style= attribute in revision.html into diff.css.

Fixes: https://bugs.launchpad.net/loggerhead/+bug/449980

The commit-message block sits inside a 493px floated column, with the
files-changed list floated next to it. `white-space: pre-wrap` alone
only wraps on whitespace, so a long URL or other unbreakable string in
the message spilled over and obscured the adjacent files list. Add
`overflow-wrap: anywhere` + `word-break: break-word` on `.information`
so the message stays inside its column.

Also lift the `.information` styling out of the inline `style=`
attribute in revision.html into diff.css.

Fixes: https://bugs.launchpad.net/loggerhead/+bug/449980
@jelmer
jelmer merged commit 900fc80 into master Apr 22, 2026
1 check 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