Page MenuHomePhabricator

Do not hardcode dialog widths to avoid cutting strings (ellipsis)
Closed, ResolvedPublic

Description

There are languages out there which have longer words. Hence make the dialog wider or break lines.

fooVE.png (804×525 px, 51 KB)

Event Timeline

Aklapper raised the priority of this task from to Needs Triage.
Aklapper updated the task description. (Show Details)
Aklapper added a project: VisualEditor.
Aklapper subscribed.
Aklapper set Security to None.
Jdforrester-WMF subscribed.

I don't think this is a good idea. Instead, we should work harder on labels to be shorter.

@Jdforrester-WMF, How about adding a title attribute to the label. That way there is at least a way to see the full title if one really has to.

Screen Shot 2016-02-08 at 3.09.31 pm.png (151×520 px, 22 KB)

We could do this simply by adding the title attribute to the Dialog's specific LabelWidget, or by making LabelWidget a TitledElement.

Both approaches are trivial, @Jdforrester-WMF, if you're alright with the solution, we can get this out.

We could do this simply by adding the title attribute to the Dialog's specific LabelWidget, or by making LabelWidget a TitledElement.

Both approaches are trivial, @Jdforrester-WMF, if you're alright with the solution, we can get this out.

Let's do that as a start.

Change 297973 had a related patch set uploaded (by Prtksxna):
Dialog: Set the 'title' attribute on the title LabelWidget

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

Change 297973 merged by jenkins-bot:
Dialog: Set the 'title' attribute on the title LabelWidget

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