Page MenuHomePhabricator

MMV below the fold not optimized for mobile display
Closed, ResolvedPublic0 Estimated Story PointsBUG REPORT

Assigned To
Authored By
Jdlrobson
Oct 29 2024, 1:18 AM
Referenced Files
F66715181: screenshot 98.mov.gif
Oct 1 2025, 12:49 AM
F66561422: screenshot 55.mov.gif
Sep 24 2025, 11:46 PM
F66025572: screenshot 27.mov.gif
Sep 16 2025, 6:10 AM
F66015221: image.png
Sep 11 2025, 10:42 PM
F66015218: image.png
Sep 11 2025, 10:42 PM
F66015214: image.png
Sep 11 2025, 10:42 PM
F66015209: image.png
Sep 11 2025, 10:42 PM
F66015164: image.png
Sep 11 2025, 10:01 PM

Description

Steps to replicate the issue (include links if applicable):

  • Make sure you are viewing the desktop site
  • Resize window for mobile display (400px)
  • Visit a page with [[File:Duluth,_South_Shore_&_Atlantic_Railway_-_System_Index_Map.jpg]] on it and open the media viewer e.g.

What happens?:

Screenshot 2024-10-28 at 6.16.22 PM.png (1×798 px, 466 KB)

What should have happened instead?:
Should be stacked rather than squished

Screenshot 2024-10-28 at 6.18.42 PM.png (1×994 px, 830 KB)

QA steps beta

QA steps production

Requirement

Media Viewer (MMV) must render correctly when viewed on narrow viewport widths on the desktop site. When resized to ~400px, MMV content must stack vertically instead of being squished horizontally. This behavior must be consistent on both beta and production environments.

BDD

Feature: Media Viewer responsive behavior on narrow desktop viewport

  Scenario: Media Viewer on ~400px desktop viewport
    Given I am on the desktop site
    And I resize the window to ~400px width
    When I open Media Viewer for an image
    Then the Media Viewer layout must stack vertically
    And content must not be squished horizontally

Test Steps

Test Case 1: Verify MMV behavior on beta site

  1. Navigate to https://en.wikipedia.beta.wmcloud.org/wiki/T378431 on production visit https://en.wikipedia.org/wiki/Duluth,_South_Shore_and_Atlantic_Railway
  2. Resize browser window to ~400px width
  3. Open the Media Viewer for the file
  4. AC1: MMV content stacks vertically instead of being squished

QA Results - Beta

ACStatusDetails
1T378431#11183560

QA Results - Prod

ACStatusDetails
1T378431#11231742

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Jdlrobson raised the priority of this task from Medium to High.Nov 1 2024, 3:41 PM
egardner set the point value for this task to 2.Aug 14 2025, 5:52 PM
egardner moved this task from Needs Refinement to Ready on the Reader Growth Team board.
egardner lowered the priority of this task from High to Low.Sep 2 2025, 10:16 PM
bvibber subscribed.

For comparison, here's the mobile alt implementation of multimedia viewer, which is less capable and has fewer parts on it:

image.png (898×438 px, 212 KB)

and desktop multimedia viewer viewed on a simulated iphone, which zooms out the page to a simulated desktop page:

image.png (920×490 px, 260 KB)

However if we want to eventually merge desktop and mobile multimediaviewers, that probably means making the desktop designs work on smaller screens more reliably.

Recommended acceptance critrea:

  • small column widths (>= 320px, < some limit before 960px) should have a single-column layout for the details area
  • UI elements should be legible and not unexpectedly broken

Local image in very narrow desktop view before I start and after a CSS tweak:

image.png (1×556 px, 104 KB)
image.png (1×550 px, 295 KB)

Provisionally putting the switch point at 500px:

image.png (1×1 px, 1 MB)
image.png (1×1 px, 1 MB)

I'm leaving the "More details" link as it is in the corner, but it doesn't do _super_ great with long title text which will get wrapped quickly. Any opinions?

Change #1187548 had a related patch set uploaded (by Bvibber; author: Bvibber):

[mediawiki/extensions/MultimediaViewer@master] Turn the metadata columns to single-column on <500px screens

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

Change #1187548 merged by jenkins-bot:

[mediawiki/extensions/MultimediaViewer@master] Turn the metadata columns to single-column on <500px screens

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

Edtadros subscribed.

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Sequoia 15.5
Browser: Chrome Canary (latest as of test date)
Device: MS
Emulated Device: NA

Test Case 1: Verify MMV behavior on beta site

  1. Navigate to https://en.wikipedia.beta.wmcloud.org/wiki/T378431 on production visit https://en.wikipedia.org/wiki/Duluth,_South_Shore_and_Atlantic_Railway
  2. Resize browser window to ~400px width
  3. Open the Media Viewer for the file
  4. AC1: MMV content stacks vertically instead of being squished

screenshot 27.mov.gif (808×394 px, 1 MB)

ovasileva changed the point value for this task from 2 to 0.Sep 16 2025, 4:51 PM
ovasileva subscribed.

Dropping to zero. If we flag anything in QA, we'll revisit in a different sprint

Test Result - Prod

Status: ❓ Need more info
Environment: enwiki
OS: macOS Sequoia 15.5
Browser: Chrome Canary (latest as of test date)
Device: MS
Emulated Device: NA

Test Case 1: Verify MMV behavior on beta site

  1. Navigate to https://en.wikipedia.beta.wmcloud.org/wiki/T378431 on production visit https://en.wikipedia.org/wiki/Duluth,_South_Shore_and_Atlantic_Railway
  2. Resize browser window to ~400px width
  3. Open the Media Viewer for the file
  4. AC1: MMV content stacks vertically instead of being squished

@bvibber, When I open the image from the page I dont' actually have an ability to scroll the details into view. The second image below is opened from commons where the behavior is similar to what I saw in beta. What is expected on enwiki?

screenshot 55.mov.gif (792×498 px, 335 KB)

screenshot 27.mov.gif (808×394 px, 1 MB)

@Edtadros those screenshots are the mobile multimedia viewer, which is a separate implementation part of MobileFrontend -- the bug, confusingly, is for the full-featured MultimediaViewer extension which is shown on the regular desktop view when the window is sized small. You need to test as desktop mode, not mobile mode.

Test Result - Prod

Status: ✅ Pass
Environment: enwiki
OS: macOS Sequoia 15.5
Browser: Chrome Canary (latest as of test date)
Device: MS
Emulated Device: NA

Test Case 1: Verify MMV behavior on beta site

  1. Navigate to https://en.wikipedia.beta.wmcloud.org/wiki/T378431 on production visit https://en.wikipedia.org/wiki/Duluth,_South_Shore_and_Atlantic_Railway
  2. Resize browser window to ~400px width
  3. Open the Media Viewer for the file
  4. AC1: MMV content stacks vertically instead of being squished

screenshot 98.mov.gif (1×450 px, 630 KB)