Non-wrapping topic titles extend beyond page width

AI-generated summary

fefrei reported a bug where topic titles containing long words fail to wrap, extending beyond the page width and causing horizontal overflow. Shortly after posting, fefrei realized this issue had already been reported and fixed via a commit just ten minutes prior. techAPJ confirmed the fix is live, linking to the specific commit. sam raised a concern regarding the inconsistent behavior of word-wrap: break-word across different browsers, requesting cross-browser testing. In response, techAPJ tested the topic with long word on Safari and Chrome for iOS, as well as Chrome for Android, and reported no unusual behavior. Finally, codinghorror noted that the issue also appears in the right gutter of posts on desktop, which continues to cause horizontal scrolling.

When a topic title contains a long word, it cannot wrap around and extends beyond the expected width:

Here is the original topic:

1 Mi Piace

Oops – I just realized this was reported before (and the fix committed 10 minutes ago):

Sorry – I clearly need to work on my search skills :slightly_smiling:

Yup, should be fixed now. :slightly_smiling:


https://github.com/discourse/discourse/commit/68a69c213cc743f3c2d6f632b3a4acd8a4715c80

2 Mi Piace

word-wrap: break-word has very inconsistent behavior depending on all sorts of stuff, can you ensure you test this across browsers?

3 Mi Piace

Okay, tested the topic with long word on latest:

  • Safari on iOS 9.2 (iPhone 6, iPad 4)
  • Chrome on iOS 9.2 (iPhone 6, iPad 4)
  • Chrome on Android 5 (OnePlus One)

Did not noticed any weird behaviour.

3 Mi Piace

It looks like we need it in the right gutter here as well, if you look to the right of your post.. that causes scroll for me on desktop.