Page MenuHomePhabricator

Italicized titles can get clipped on mobile
Closed, ResolvedPublic2 Estimated Story Points

Description

The title can get clipped if it extends beyond the box for the heading-holder. See the edge of the 'J' in the screenshot:

Screen Shot 2018-05-11 at 1.57.30 PM.png (132×631 px, 20 KB)

This is caused by:
heading-holder { overflow: hidden; }

=== Replication steps
Visit https://en.m.wikipedia.org/wiki/Jane_and_the_Dragon with Chrome. Note J is clipped.

==== Developer notes
The affecting style is located in `skins.minerva.base.styles` module. 
The problem is that the title is italicized. The following CSS will make it go away:

h1 i {

padding-left: 1px;

}

Alternatively, we can remove the overflow:hdidden on heading-holder

Event Timeline

pmiazga updated the task description. (Show Details)
pmiazga subscribed.

@kaldari - could you share the device/os/browser that you are using? I tried some titles on my machine and it works well (Debian + Chrome 66)

Jdlrobson subscribed.

Can reproduce on https://en.m.wikipedia.org/wiki/Jane_and_the_Dragon (OSX Chrome). The italic tag is the problem.

Jdlrobson renamed this task from Title can get clipped on mobile to Italicized titles can get clipped on mobile.May 29 2018, 4:09 PM
pmiazga set the point value for this task to 2.May 29 2018, 4:30 PM

We'll need to do some code archeology to determine whether the overflow hidden can be removed but there's two easy fixes here.

I think this problem is affecting non-italicized titles containing the letter J as well. I'm seeing the following on both Chrome and Safari on https://en.m.wikipedia.org/wiki/Jailhouse_Rock:

currentwidth 2px padding-left on h1
Screen Shot 2018-05-29 at 12.34.29 PM.png (294×746 px, 28 KB)
Screen Shot 2018-05-29 at 12.34.06 PM.png (296×746 px, 28 KB)
ovasileva triaged this task as Medium priority.May 30 2018, 2:21 PM

Is there a patch? I don't see one...

Change 440182 had a related patch set uploaded (by Niedzielski; owner: Stephen Niedzielski):
[mediawiki/skins/MinervaNeue@master] Fix: don't truncate the article title

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

Is that all you care about? Patches?

Change 440182 merged by jenkins-bot:
[mediawiki/skins/MinervaNeue@master] Fix: don't truncate the article title

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

Vvjjkkii renamed this task from Italicized titles can get clipped on mobile to b3caaaaaaa.Jul 1 2018, 1:10 AM
Vvjjkkii reopened this task as Open.
Vvjjkkii removed ovasileva as the assignee of this task.
Vvjjkkii raised the priority of this task from Medium to High.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed the point value for this task.
Vvjjkkii edited subscribers, added: ovasileva; removed: gerritbot, Aklapper.
TerraCodes renamed this task from b3caaaaaaa to Italicized titles can get clipped on mobile.Jul 1 2018, 2:38 AM
TerraCodes closed this task as Resolved.
TerraCodes assigned this task to ovasileva.
TerraCodes lowered the priority of this task from High to Medium.
TerraCodes updated the task description. (Show Details)
TerraCodes set the point value for this task to 2.
TerraCodes edited subscribers, added: Aklapper, gerritbot; removed: ovasileva.