Page MenuHomePhabricator

Discover title auto flex in 2 lines
Closed, ResolvedPublic

Description

If possible, we would like to

  1. auto flex the title into 2 lines;
  2. keeping the min-width;
  3. no extra space when the title is short;

image.png (176×1 px, 66 KB)

Related Objects

Event Timeline

SBisson triaged this task as Medium priority.Aug 1 2022, 1:16 PM

Change 821307 had a related patch set uploaded (by Eamedina; author: Eamedina):

[mediawiki/extensions/Wikistories@master] Remove min-width for short titles

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

Change 821307 abandoned by Eamedina:

[mediawiki/extensions/Wikistories@master] Remove min-width for short titles

Reason:

New patch incoming

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

Change 826379 had a related patch set uploaded (by Eamedina; author: Eamedina):

[mediawiki/extensions/Wikistories@master] Allow titles to adjust their width according to text content

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

Change 826379 merged by jenkins-bot:

[mediawiki/extensions/Wikistories@master] Allow titles to adjust their width according to text content

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

EUdoh-WMF added a subscriber: EUdoh-WMF.

Looks good to me.

  1. The width extends slightly for double lines.
  2. The story name truncates on the second line
  3. For a short title, the section has a smaller minimum width.

image.png (570×1 px, 199 KB)