Page MenuHomePhabricator

Unexpected whitespace at the top of stub (short) articles in Vector 2022
Closed, ResolvedPublicBUG REPORT

Description

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

What happens?:

  • There is a lot of whitespace at the top of an article before you get to 'From Wikipedia, the free encyclopedia'

What should have happened instead?:

  • Less vertical whitespace
  • This persists when replacing article content with 'Test', so doesn't seem to be wikitext-specific

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
Firefox 109.0, MacOS 13.0

Screenshot 2023-01-23 at 21.31.57.png (2×3 px, 1 MB)

Screenshot 2023-01-23 at 21.31.42.png (2×3 px, 1 MB)

QA Results - Prod

ACStatusDetails
1T327714#8559568

Event Timeline

I think this happens when the article is shorter than the sidebars, going from a random selection of articles.

This is replicable when the new page tools sidebar is visible, but not when the Tools items are hidden in the Tools menu. It looks like a change to the grid may have caused this. This one should be an urgent fix (or maybe rollback the page tools temporarily, given the other problems that have been reported).

Another example page: https://en.wikipedia.org/wiki/%C2%BFD%C3%B3nde_est%C3%A1_Elisa%3F

Change 883241 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/skins/Vector@master] Define grid template area for .mw-body grid container to ensure the grid cell containing the content will expand in height when needed

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

Change 883241 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Define grid template row for .mw-body grid container to ensure the grid cell containing the content will expand in height when needed

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

Jdlrobson renamed this task from Unexpected whitespace at the top of an article in Vector 2022 to Unexpected whitespace at the top of stub (short article in Vector 2022.Jan 24 2023, 10:38 PM
Jdlrobson renamed this task from Unexpected whitespace at the top of stub (short article in Vector 2022 to Unexpected whitespace at the top of stub (short) articles in Vector 2022.
Jdlrobson added subscribers: PPham, jhsoby.
Edtadros moved this task from QA to Needs More Work on the Web-Team FY2022-23 Q3 Sprint 1 board.
Edtadros subscribed.

Test Result - Beta

Status:
Environment: beta
OS: macOS Ventura
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

❌ AC1: There should not be a lot of whitespace at the top of an article before you get to 'From Wikipedia, the free encyclopedia'
https://en.wikipedia.beta.wmflabs.org/wiki/Conflict-title-0.05316586908130838-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n

Screenshot 2023-01-24 at 3.43.03 PM.png (1×1 px, 220 KB)

Change 883290 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/skins/Vector@master] Account for temporary row in grid template row

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

Change 883290 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Account for temporary row in grid template row

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

bwang removed bwang as the assignee of this task.Jan 25 2023, 3:53 PM
bwang moved this task from Needs More Work to QA on the Web-Team FY2022-23 Q3 Sprint 1 board.
bwang subscribed.

Do we want to backport this? If so, gentle nudge that there's a free window in ~2 hours 🤗

Change 883616 had a related patch set uploaded (by Jdrewniak; author: Bernard Wang):

[mediawiki/skins/Vector@wmf/1.40.0-wmf.19] Define grid template row for .mw-body grid container to ensure the grid cell containing the content will expand in height when needed

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

Change 883617 had a related patch set uploaded (by Jdrewniak; author: Bernard Wang):

[mediawiki/skins/Vector@wmf/1.40.0-wmf.20] Define grid template row for .mw-body grid container to ensure the grid cell containing the content will expand in height when needed

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

Change 883618 had a related patch set uploaded (by Jdrewniak; author: Bernard Wang):

[mediawiki/skins/Vector@wmf/1.40.0-wmf.19] Account for temporary row in grid template row

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

Change 883619 had a related patch set uploaded (by Jdrewniak; author: Bernard Wang):

[mediawiki/skins/Vector@wmf/1.40.0-wmf.20] Account for temporary row in grid template row

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

Do we want to backport this? If so, gentle nudge that there's a free window in ~2 hours 🤗

@TheresNoTime Yes, we're backporting it today :) should appear on the schedule now.

Change 883616 merged by Samtar:

[mediawiki/skins/Vector@wmf/1.40.0-wmf.19] Define grid template row for .mw-body grid container to ensure the grid cell containing the content will expand in height when needed

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

Change 883617 merged by Samtar:

[mediawiki/skins/Vector@wmf/1.40.0-wmf.20] Define grid template row for .mw-body grid container to ensure the grid cell containing the content will expand in height when needed

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

Mentioned in SAL (#wikimedia-operations) [2023-01-25T21:24:43Z] <samtar@deploy1002> Started scap: Backport for [[gerrit:883617|Define grid template row for .mw-body grid container to ensure the grid cell containing the content will expand in height when needed (T327714)]], [[gerrit:883616|Define grid template row for .mw-body grid container to ensure the grid cell containing the content will expand in height when needed (T327714)]]

Mentioned in SAL (#wikimedia-operations) [2023-01-25T21:26:27Z] <samtar@deploy1002> jdrewniak and samtar: Backport for [[gerrit:883617|Define grid template row for .mw-body grid container to ensure the grid cell containing the content will expand in height when needed (T327714)]], [[gerrit:883616|Define grid template row for .mw-body grid container to ensure the grid cell containing the content will expand in height when needed (T327714)]] synced to the testservers: mwdebug2002.cod

Mentioned in SAL (#wikimedia-operations) [2023-01-25T21:34:10Z] <samtar@deploy1002> Finished scap: Backport for [[gerrit:883617|Define grid template row for .mw-body grid container to ensure the grid cell containing the content will expand in height when needed (T327714)]], [[gerrit:883616|Define grid template row for .mw-body grid container to ensure the grid cell containing the content will expand in height when needed (T327714)]] (duration: 09m 27s)

It looks much better now, thank you for working on this!

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Ventura
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: There should not be a lot of whitespace at the top of an article before you get to 'From Wikipedia, the free encyclopedia'
https://en.wikipedia.beta.wmflabs.org/wiki/Conflict-title-0.05316586908130838-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n

Screenshot 2023-01-25 at 5.48.17 PM.png (563×1 px, 127 KB)

Test Result - Prod

Status:
Environment: enwiki
OS: macOS Ventura
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

AC1: There should not be a lot of whitespace at the top of an article before you get to 'From Wikipedia, the free encyclopedia'
@Jdlrobson, Using the URL in the description https://en.wikipedia.org/wiki/Cristina_Pi%C3%B1a?safemode=1 the 'From Wikipedia, the free encyclopedia' does not appear on the page.

Screenshot 2023-01-25 at 5.56.20 PM.png (561×1 px, 194 KB)

Without the safemode param this appears correctly.

Screenshot 2023-01-25 at 5.50.50 PM.png (561×1 px, 193 KB)

Is this expected?
This is a pass per T327714#8559696

It looks much better now, thanks for working on this.

Test Artifact(s):

QA Steps

❓ AC1: There should not be a lot of whitespace at the top of an article before you get to 'From Wikipedia, the free encyclopedia'
@Jdlrobson, Using the URL in the description https://en.wikipedia.org/wiki/Cristina_Pi%C3%B1a?safemode=1 the 'From Wikipedia, the free encyclopedia' does not appear on the page.

Screenshot 2023-01-25 at 5.56.20 PM.png (561×1 px, 194 KB)

Without the safemode param this appears correctly.

Screenshot 2023-01-25 at 5.50.50 PM.png (561×1 px, 193 KB)

Is this expected?

Yes. The tagline is hidden by default and caused to be displayed only in the local stylesheets (e.g. https://en.wikipedia.org/wiki/MediaWiki:Common.css#L-236 ), which are disabled in safe mode.

Change 883618 abandoned by Jdrewniak:

[mediawiki/skins/Vector@wmf/1.40.0-wmf.19] Account for temporary row in grid template row

Reason:

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

Change 883619 abandoned by Jdrewniak:

[mediawiki/skins/Vector@wmf/1.40.0-wmf.20] Account for temporary row in grid template row

Reason:

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