More aggressive word wrapping in reference preview popups
Closed, ResolvedPublic2 Estimated Story Points

Description

The theory is that a horizontal scrollbar is much worse than a word that's broken up at a wrong position. CSS gives us tools to avoid scrollbars without hiding content, so let's use them.

Examples:

<ref>Foobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobar</ref>
<ref>Foo&nbsp;bar&nbsp;foo&nbsp;bar&nbsp;foo&nbsp;bar&nbsp;foo&nbsp;bar&nbsp;foo&nbsp;bar</ref>
<ref><span style="white-space: nowrap;">Foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar</span></ref>
<ref><span style="white-space: pre;">Foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar</span></ref>

Briefly discusses here: T265482#6588133

Event Timeline

Change 637707 had a related patch set uploaded (by Thiemo Kreuz (WMDE); owner: Thiemo Kreuz (WMDE)):
[mediawiki/extensions/Popups@master] [WIP] Wrap long words in reference preview popups

https://gerrit.wikimedia.org/r/637707

thiemowmde moved this task from Maintenance Backlog to Currently in sprint on the WMDE-TechWish board.
thiemowmde set the point value for this task to 2.
thiemowmde moved this task from Sprint Backlog to Review on the WMDE-QWERTY-Sprint-2020-10-21 board.

Change 637707 merged by jenkins-bot:
[mediawiki/extensions/Popups@master] Wrap long words in reference preview popups

https://gerrit.wikimedia.org/r/637707

Notes from todays demo time:

You might already know this, but wanted to comment in case it's helpful. As we were looking at the current behavior on beta both Lena and I noticed the horizontal scrollbar was still showing up in Firefox (Chrome was fine for me). Let me know if screenshots are helpful (was using the same link as above).

Today it's fine both in Chromium as well as Firefox. Some weird caching was going on on the beta cluster, it seems.