Page MenuHomePhabricator

[BUG] Some content is not rendering correctly in the Quick box / Info box on Android web view
Closed, ResolvedPublic

Description

Certain content in the info box is getting cut off, appears to be whenever a media player is in an info box on Android.
First reported via OTRS: https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom;TicketID=10554532

Steps to reproduce
  1. Go to the article Provincias Unidas del Centro de América
  2. Open the quick/info box
  3. Go to another article Tear down this wall!
  4. Open the quick/info box
Expected

In steps 2 and 4, the media controls are shown not obscured/obscuring other content

Expected step 2 - play and download controls are shown below text
image.png (1×1 px, 410 KB)
Expected step 4 - "Play media" is shown
image.png (1×1 px, 595 KB)

Note that it is appearing as expected in the mweb and iOS app versions of these pages.

Actual

Media controls overlaps text in step 2, "Play media" not visible in step 4

Actual step 2
image.png (1×1 px, 355 KB)
Actual step 4
image.png (1×1 px, 568 KB)
Occurring on

Wikipedia v2.7.224-alpha-2018-01-26

Event Timeline

Thanks Rita! I sent the first report from mobile app. On my device (Samsung Galaxy S5 with Android 6.0.1) the situation is much worst. Here is a screenshot what I see:

Screenshot_2018-01-31-15-03-23.png (1×1 px, 227 KB)
If I try to reproduce the bug with Chrome developer console > mobile view > Galaxy S5 the renderization is bad but not so terrible as actually is on the real device.
Is not necessary to clic the infobox, just scroll and there it is, cropped.

Similar to T167600 in that what's happening seems to be browser dependent. In T133673 we arbitrarily set the height of audio tags to 20px, but Chrome's player's controls seem to have a height of 32px. Firefox controls appear to scale.

Minerva seems to set,

audio {
    height: 32px;
}
ovasileva triaged this task as Medium priority.Mar 13 2018, 11:05 AM
Jdlrobson subscribed.

Minerva seems to set,

audio {
    height: 32px;
}

I'm not seeing this anywhere.. The only mention of the audio tag inside "Minerva" is in the css reset file.

I'm not seeing this anywhere.. The only mention of the audio tag inside "Minerva" is in the css reset file.

Apologies, that's from the user agent stylesheet is Chrome.

Change 425900 had a related patch set uploaded (by Arlolra; owner: Arlolra):
[mediawiki/services/parsoid@master] Increase the default height mw:Audio to 32px

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

Change 425900 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Increase the default height mw:Audio to 32px

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

Arlolra claimed this task.

"height" was bumped to 32 in that patch, and a new "mw-default-audio-size" class was added that can be targeted to override it.