Page MenuHomePhabricator

[Bug] Additional horizontal padding displayed in QuickSurvey on mobile devices
Closed, ResolvedPublic2 Estimated Story Points

Assigned To
Authored By
AAlhazwani-WMF
Nov 25 2021, 1:53 PM
Referenced Files
F35005538: image.png
Mar 14 2022, 5:47 PM
F35005529: image.png
Mar 14 2022, 5:47 PM
F35005580: image.png
Mar 14 2022, 5:47 PM
F35005560: image.png
Mar 14 2022, 5:47 PM
F35005577: image.png
Mar 14 2022, 5:47 PM
F35005533: image.png
Mar 14 2022, 5:47 PM
F35005582: image.png
Mar 14 2022, 5:47 PM
F35005575: image.png
Mar 14 2022, 5:47 PM

Description

Steps to reproduce

Navigate to https://en.wikipedia.beta.wmflabs.org/wiki/User:Erayfield/sandbox

Expected results

QuickSurvey padding left and right set to 16px em equivalent.

Actual results

Derrick and Joaquin found that there's a specif minerva/mobilefrontend rule with .content which increases the horizontal padding of QuickSurvey

@media screen and (min-width: 720px)
.pre-content, .minerva-anon-talk-message, #mw-content-text > form, .content, .content-unstyled, .post-content {
    max-width: 993.3px;
    margin: 0 3.35em;
}

image.png (483Γ—816 px, 124 KB)

image.png (863Γ—441 px, 124 KB)

image.png (782Γ—469 px, 125 KB)

Environments observed

  • iPhone 13 Pro Max phone (iOS version 15) using Landscape orientation
  • Samsung FE20 phone (Android version 11) using Portrait orientation
  • Samsung Galaxy A10 tablet emulator (Android version 8.1) using Portrait orientation

Event Timeline

Change 769608 had a related patch set uploaded (by Scardenasmolinar; author: Scardenasmolinar):

[mediawiki/extensions/QuickSurveys@master] Change survey content class name

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

Test wiki created on Patch demo by SCardenas (WMF) using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/47a727c230/w/

Change 769608 merged by jenkins-bot:

[mediawiki/extensions/QuickSurveys@master] Change survey content class name

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

jsn.sherman subscribed.

Sticking this in product sign-off since it's so straightforward and has been merged. Forgive me if I am advancing it too far!

Test wiki on Patch demo by SCardenas (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/47a727c230/w/

I have verified this defect has been resolved for the devices listed in the ticket Description, and I have also verified this code fix did not effect the existing screen layout of the Quick Survey on the other browsers or devices.

Compatibility Testing was performed on the following:
DesktopΒ  – Firefox version 98 / Chrome version 99 / Microsoft Edge version 99 / Opera version 84 / Safari version 15.

Mobile Devices – Android version 12 Samsung FE20 phone / Android version 8.1 Galaxy A10 tablet / iOS version 15 iPad Pro 5th generation / iOS version 15 iPhone 13 Pro Max.


Below are screenshots of new code change:
(NOTE: please disregard blurriness of screenshots, this is due to device simulation and is not related to the code change):

screenshots for iPhone 13 Pro Max / iOS version 15:

image.png (457Γ—799 px, 110 KB)
image.png (848Γ—409 px, 163 KB)
image.png (859Γ—425 px, 184 KB)
image.png (478Γ—781 px, 132 KB)


screenshots for Samsung FE 20 phone / Android version 12:

image.png (838Γ—406 px, 115 KB)

image.png (829Γ—387 px, 118 KB)


screenshots for Samsung Galaxy A10 tablet emulator / Android version 8.1:

image.png (760Γ—451 px, 121 KB)
image.png (494Γ—719 px, 114 KB)
image.png (503Γ—719 px, 114 KB)
image.png (758Γ—457 px, 116 KB)

Madalina subscribed.

Looks good to me!