Skip to content

break long words to prevent horizontal scroll#3384

Open
darricheng wants to merge 1 commit into
rust-lang:mainfrom
darricheng:crate-description-text-overflow
Open

break long words to prevent horizontal scroll#3384
darricheng wants to merge 1 commit into
rust-lang:mainfrom
darricheng:crate-description-text-overflow

Conversation

@darricheng

Copy link
Copy Markdown
Contributor

Came across this crate with a description that was overflowing and breaking the layout:
Screenshot 2026-06-22 at 11 15 39 AM

For this specific crate description, it only breaks the layout on Safari or Chrome related browsers as Firefox breaks long words on slashes as well. A long word would break the layout on any browser, but I think that kind of case would be rarer. This CSS change breaks the word if they get too long, so that the layout doesn't break.

Screenshot 2026-06-22 at 11 20 31 AM

There's a few other CSS options that could resolve this as detailed in css-tricks, but I thought this one was the most effective and minimal change to resolve this.

@darricheng darricheng requested a review from a team as a code owner June 22, 2026 04:02
@github-actions github-actions Bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Jun 22, 2026
@GuillaumeGomez

Copy link
Copy Markdown
Member

Fix looks good to me, thanks! Please add a GUI regression test (don't hesitate to ask if you need help).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants