Page MenuHomePhabricator

Long labels require horizontal scrolling on some wikis
Closed, ResolvedPublic

Description

All examples below are for the viewport with 430px width.

Event Timeline

Etonkovidova renamed this task from Long lang labels require horizontal scrolling to Long labels require horizontal scrolling on some wikis.Feb 2 2024, 12:54 AM
Etonkovidova added a project: MobileFrontend.
Etonkovidova updated the task description. (Show Details)
Etonkovidova added subscribers: Jdlrobson, Edtadros.

The menu select of OOUI cuts the text off and adds ellipsis for their options, I wonder if we could apply that to this situation.

Otherwise I can't think of a clean solution for the current layout, the translations can't be made shorter, given there is context around them?

You can set white-space: normal; in CSS on buttons that are likely to have long text and be displayed in tight spaces. OOUI supports that, and we did that for a few buttons in VisualEditor. For example, this button in the gallery dialog:

image.png (2×3 px, 1 MB)

Change #1027124 had a related patch set uploaded (by Sjoerddebruin; author: Sjoerddebruin):

[mediawiki/skins/MinervaNeue@master] Apply white-space:normal to buttons in preferences (T356467)

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

We could apply some margin or gaps at some point in a different task, but this is a lot better already:

image.png (436×624 px, 59 KB)

Change #1027124 had a related patch set uploaded (by Bartosz Dziewoński; author: Sjoerddebruin):

[mediawiki/skins/MinervaNeue@master] Apply white-space:normal to buttons in preferences

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

Change #1027124 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Apply white-space:normal to buttons in preferences

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

This is how the same fix would look on the recent changes, which doesn't make it much better imo. Is there a relevant task for the horrible icon spacing btw?

image.png (1×656 px, 123 KB)

The icons don't look like that for me. That seems like a separate problem.

Change #1032093 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/core@master] RCFilters: Apply white-space:normal to a couple of wide buttons

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

After my changes: (I also tweaked the alignment when the button text is wrapped)

image.png (1×798 px, 113 KB)

Change #1032093 merged by jenkins-bot:

[mediawiki/core@master] RCFilters: Apply white-space:normal to a couple of wide buttons

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

matmarex removed a project: Patch-For-Review.
matmarex updated the task description. (Show Details)