In cx2-testing for the article 'First Geneva Convention' (translating from English) - the category names overflow the label elment placeholder:
In production (wmf.27) Category section has a different design allowing to wrap long category names:
| Etonkovidova | |
| Apr 3 2018, 11:42 PM |
| F17290544: cx2-categories-ellipsis.png | |
| Apr 24 2018, 7:44 PM |
| F17289823: Screen Shot 2018-04-24 at 11.58.07.png | |
| Apr 24 2018, 7:00 PM |
| F17289822: Screen Shot 2018-04-24 at 11.58.34.png | |
| Apr 24 2018, 7:00 PM |
| F16657710: categories-wrapping.png | |
| Apr 4 2018, 9:33 AM |
| F16657704: categories-ellipsis.png | |
| Apr 4 2018, 9:33 AM |
| F16657702: categories-overflowing.png | |
| Apr 4 2018, 9:33 AM |
| F16649482: Screen Shot 2018-04-03 at 4.40.28 PM.png | |
| Apr 3 2018, 11:42 PM |
| F16649424: Screen Shot 2018-04-03 at 4.32.34 PM.png | |
| Apr 3 2018, 11:42 PM |
In cx2-testing for the article 'First Geneva Convention' (translating from English) - the category names overflow the label elment placeholder:
In production (wmf.27) Category section has a different design allowing to wrap long category names:
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| TagItemWidget: Make applying cutoff and ellipsis actually work | oojs/ui | master | +11 -0 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T188605 CX2: Category support | |||
| Resolved | matmarex | T191370 CX2: Long category names overflow oo-ui-labelElement-label |
This should probably be resolved in OOUI. By looking at the code, one can observe that .oo-ui-tagItemWidget is preventing wrapping and its only child, .oo-ui-labelElement-label, is trying to add ellipsis, but that fails.
Here is comparison of current state and two different options (ellipsis and wrapping):
| Overflow | Ellipsis | Wrapping |
|---|---|---|
Wrapping probably isn't an option for OOUI solution, but I'm exploring ways to be able to see whole category name. I think ellipsis should be applied and let T188618 be an option to check exceptionally long category names.
This approach makes sense to me. There should be enough room for most cases and the preview card (T188618) will be useful with the rest. For additional help to desktop users, we can use the standard tooltips to show the full name on hover.
Change 428693 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[oojs/ui@master] TagItemWidget: Make applying cutoff and ellipsis actually work
Change 428693 merged by jenkins-bot:
[oojs/ui@master] TagItemWidget: Make applying cutoff and ellipsis actually work
Since @Etonkovidova would need to wait for next release of OOUI to do QA, I have checked the article from the description and captured following screenshot: