Page MenuHomePhabricator

Collaborative contribution "Article edited" title should wrap for long article titles
Closed, ResolvedPublic

Description

When I create or edit an article with a long title
And I view the collaborative contribution table
Then the long article title breaks the layout

Acceptance criteria:
The title should wrap (like username currently does in the same table)

Current behavior (needs changed):

screenshotgif
Screenshot 2025-10-20 at 4.45.15 PM.png (1×1 px, 103 KB)
Screen Recording 2025-10-20 at 4.47.44 PM.gif (1×2 px, 3 MB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@vaughnwalters This seems to be resolved already in master:

Screenshot 2025-10-30 at 13.50.13.png (1×2 px, 266 KB)

@vaughnwalters This seems to be resolved already in master:

That's for usernames, which correctly wrap because we added the appropriate styles from the get go. The same needs to be done for page links.

@vaughnwalters This seems to be resolved already in master:

Screenshot 2025-10-30 at 13.50.13.png (1×2 px, 266 KB)

@MHorsey-WMF can you remove the hyphen from one of those strings and see if it still works correctly for you? This is still not working on my end.

Screenshot 2025-10-30 at 12.17.07 PM.png (1×1 px, 193 KB)

@vaughnwalters I see what's happening. It breaks on hyphens and spaces, but not if there is a very long unbroken string of text. An edge case, but easily fixed.

Change #1201146 had a related patch set uploaded (by Mhorsey; author: Mhorsey):

[mediawiki/extensions/CampaignEvents@master] Make article text wrap correctly on Special:EventDetails

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

Change #1201146 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Make article text wrap correctly on Special:EventDetails

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

This column wraps now correctly on full size desktop view, but breaks the layout on mobile. Note the "Article edited" header on mobile skin, or smaller breakpoints on desktop view.

collaborative contribution event with long article titlecollaborative contribution event without a long article title
Screenshot 2025-11-03 at 1.38.20 PM.png (1×1 px, 182 KB)
Screenshot 2025-11-03 at 1.44.04 PM.png (1×976 px, 163 KB)

Change #1201202 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] resources: Fix CSS selector for event contribution article links

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

This column wraps now correctly on full size desktop view, but breaks the layout on mobile. Note the "Article edited" header on mobile skin, or smaller breakpoints on desktop view.

Made a quick patch to unbreak this.

Change #1201202 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] resources: Fix CSS selector for event contribution article links

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

Title is wrapping correctly now, AC met 🎉 , sending to product sign off

fullmobile
Screenshot 2025-11-14 at 4.59.06 PM.png (1×2 px, 590 KB)
Screenshot 2025-11-14 at 4.59.31 PM.png (1×988 px, 251 KB)