Page MenuHomePhabricator

Bad line breaking/text wrapping in forum posts
Open, Needs TriagePublic

Description

I've noticed that WikiForum has a rather annoying tendency of not wrapping text properly. It will have a line break mid-word, rather than moving the word to the next line as you can see on this thread: https://closinglogosgroup.miraheze.org/w/index.php?title=Special:WikiForum&wfaction=savethread&thread=113. It gets more annoying in quotes where there is more indentation.

It's not a big deal in terms of functionality, but it just looks messy.

Event Timeline

Restricted Application added subscribers: RhinosF1, Reception123, Aklapper. · View Herald Transcript
Hb1290 renamed this task from Bad line breaking/text wrapping to Bad line breaking/text wrapping in forum posts.Aug 31 2020, 5:07 AM

This seems to be done by the older word wrapping fix in /extensions/WikiForum/resources/css/styles.css, specifically the word-break: break-all; rule on td.mw-wikiforum-thread-main. At a glance just removing that looks like it'd fix something but probably breaks something else. The main gotcha here is that WikiForum and SocialProfile do not depend on each other, thus avatars *can* be available but they don't *have* to be, which is what's causing some interesting things to happen, CSS and design-wise. (There's also the fact that WikiForum hasn't been touched in quite a while.)