Support long titles in confirmation step of the new translation dialog
Closed, ResolvedPublic

Description

The "New translation" dialog (T111094) includes the article title in the confirmation step (the last step before you actually start translating). Article titles can be too long for the available space, especially on mobile:

In order to better accommodate titles into the available space, it is proposed to :

  • When the title is longer than a certain length (and only in such case), reduce the font size used for the title. Reducing from the current 18px to 16px font size would help titles to better fit.
  • Make sure the external padding around the article detail info is respected. In the example below you can notice that the article title expanded to a point where it almost touches the border of the dialog on top.
Current stateProposal

Alternatively we can consider cropping titles up to a given length (ideally showing two lines), since the user already saw the full title in the previous step and displaying it in full at this stage is not a must.

Petar.petkovic updated the task description. (Show Details)

Change 400452 had a related patch set uploaded (by Petar.petkovic; owner: Petar.petkovic):
[mediawiki/extensions/ContentTranslation@master] Support long titles in selected source page

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

Change 400452 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Support long titles in selected source page

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

Checked the fix in cx-testing:

compare with enwiki (wmf.12)

@Petar.petkovic - there is a strange font color in the above screenshot. I did not find another example with the same font color.

Etonkovidova closed this task as Resolved.Tue, Jan 2, 5:05 AM
Nikerabbit moved this task from QA to Done on the Language-2017-Oct-Dec board.Tue, Jan 2, 6:59 AM

@Petar.petkovic - there is a strange font color in the above screenshot. I did not find another example with the same font color.

Could that be the browser's font color for visited links?

@Petar.petkovic - it seems that you're right: if the article is visited, the title will be displayed as a visited link.