Page MenuHomePhabricator

[minor] Long words overflow Image captions
Open, Needs TriagePublicBUG REPORT

Description

Steps to Reproduce:

  1. On any File page enter long strings (words without white space breaks) or urls into captions. Upon saving the text will overflow the captions form

Production example - https://commons.wikimedia.org/wiki/File:Signature-of-yasonna-laoly.png

Screen Shot 2020-07-20 at 2.58.29 PM.png (1,337×459 px, 78 KB)

Expected Results: The form "wbmi-caption-value" has a character limit of 250, but the wrapping method should handle the cases with long strings.
The screenshot below is the same caption as above used with word-break: break-all;

Screen Shot 2020-07-24 at 4.03.53 PM.png (1,285×461 px, 143 KB)

Event Timeline

• StephaneRebai subscribed.

fixed in branch wmf/1.40.0-wmf.18 :
added css property overflow-wrap: anywhere; to

.wbmi-entityview-captionsPanel .wbmi-caption-value
• StephaneRebai changed the task status from Open to In Progress.Jan 16 2023, 2:20 PM

Standby : i don't have git push rights yet

• Aklapper changed the task status from In Progress to Open.Mar 19 2025, 2:50 PM

Resetting task status from "In Progress" to "Open" as this task has not seen updates for two years.

Adding a codebase/project related project tag as folks had unfortunately only added a tag of some everchanging internal team.