Page MenuHomePhabricator

[Regression] Pages which are supposed to have full-width no longer have full-width layout
Closed, ResolvedPublic0 Estimated Story PointsBUG REPORT

Description

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

  • With latest Vector go to the Special:RecentChanges
  • Collapse the sidebar

What happens?:
You'll notice that the content container (.mw-content-container) does not expand to fit the empty space. See image below:

image.png (585×1 px, 45 KB)

What should have happened instead?:
The content container should have expanded to fill the empty space.

Screen Shot 2022-08-17 at 2.47.38 PM.png (1×2 px, 644 KB)
Screen Shot 2022-08-17 at 2.47.49 PM.png (1×2 px, 495 KB)
frwikibeta cluster

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

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

Looks like it was caused due to a patch related to T314579
https://gerrit.wikimedia.org/r/c/mediawiki/skins/Vector/+/823162

The related style also no longer applies:

.skin-vector-disable-max-width .vector-layout-grid .mw-content-container {
  max-width: none;
  width: 100%;
}

It appears to be working well on https://meta.wikimedia.org/w/index.php?title=Main_Page&action=history

QA

QA Results - Prod

ACStatusDetails
1T315460#8205004
2T315460#8205004

Event Timeline

Jdrewniak renamed this task from Content container no longer expands when sidebar is collapsed to [Rergession] Special pages no longer have 100% layout.Aug 17 2022, 6:46 PM
Jdrewniak renamed this task from [Rergession] Special pages no longer have 100% layout to [Rergession] Special pages no longer have full-width layout.Aug 17 2022, 6:49 PM
Jdrewniak updated the task description. (Show Details)
TheresNoTime renamed this task from [Rergession] Special pages no longer have full-width layout to [Regression] Special pages no longer have full-width layout.Aug 17 2022, 7:41 PM

This looks like a specificity issue where the selector for the open/closed table of contents overrides the
.skin-vector-disable-max-width .mw-content-container rule.

Screen Shot 2022-08-17 at 3.58.14 PM.png (550×1 px, 121 KB)

This is one of these rare cases where !important makes sense IMO

I think this is related, but articles now at Basque Wikipedia and French Wikipedia are full width again.

irudia.png (808×1 px, 336 KB)

I think this is related, but articles now at Basque Wikipedia and French Wikipedia are full width again.

irudia.png (808×1 px, 336 KB)

Now tracking in T315653: Regression: fixed width broken on Vector (2022)

My mistake. This one's still broken.

Jdlrobson renamed this task from [Regression] Special pages no longer have full-width layout to [Regression] Pages which are supposed to have full-width no longer have full-width layout.Aug 22 2022, 7:11 AM
Jdlrobson updated the task description. (Show Details)
Jdlrobson updated the task description. (Show Details)
Jdlrobson added subscribers: Soda, Nux, Msz2001 and 3 others.
ovasileva raised the priority of this task from High to Unbreak Now!.Aug 22 2022, 7:24 AM

Change 825295 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/Vector@master] Layout: Restore disabling of max width on certain pages

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

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

Change 825295 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Layout: Restore disabling of max width on certain pages

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

Just to make sure, are there ever any cases where .skin-vector-disable-max-width is applied to a page and the page has a TOC?

Just to make sure, are there ever any cases where .skin-vector-disable-max-width is applied to a page and the page has a TOC?

There's TOC on [[Special:EditWatchlist]]. However it's style-less at the moment (side note: is it already tracked?)

image.png (673×1 px, 64 KB)

Just to make sure, are there ever any cases where .skin-vector-disable-max-width is applied to a page and the page has a TOC?

There's TOC on [[Special:EditWatchlist]]. However it's style-less at the moment (side note: is it already tracked?)

image.png (673×1 px, 64 KB)

@Msz2001 - do you have a link for this page? I can't seem to reproduce on [[Special:EditWatchlist]] on enwiki or plwiki

Just to make sure, are there ever any cases where .skin-vector-disable-max-width is applied to a page and the page has a TOC?

In general, I don't think so, or it would be inline as in the example above, but not 100% sure

Just to make sure, are there ever any cases where .skin-vector-disable-max-width is applied to a page and the page has a TOC?

There's TOC on [[Special:EditWatchlist]]. However it's style-less at the moment (side note: is it already tracked?)

image.png (673×1 px, 64 KB)

@Msz2001 - do you have a link for this page? I can't seem to reproduce on [[Special:EditWatchlist]] on enwiki or plwiki

The URL I have in my address bar is: https://pl.wikipedia.org/wiki/Specjalna:Edytuj_obserwowane?uselang=en&useskin=vector-2022

I'm getting this TOC on my main account, where there are 6 namespaces (i.e. headings) but not on my sockpuppet (where there are only pages from a single namespace).

Just to make sure, are there ever any cases where .skin-vector-disable-max-width is applied to a page and the page has a TOC?

There's TOC on [[Special:EditWatchlist]]. However it's style-less at the moment (side note: is it already tracked?)

image.png (673×1 px, 64 KB)

@Msz2001 - do you have a link for this page? I can't seem to reproduce on [[Special:EditWatchlist]] on enwiki or plwiki

The URL I have in my address bar is: https://pl.wikipedia.org/wiki/Specjalna:Edytuj_obserwowane?uselang=en&useskin=vector-2022

I'm getting this TOC on my main account, where there are 6 namespaces (i.e. headings) but not on my sockpuppet (where there are only pages from a single namespace).

@ovasileva After a bit of testing, the TOC gets displayed only if the watchlist contains 31 or more items on it. The number of namespaces doesn't matter (EDIT: sorry, at least two namespaces are required).

@ovasileva After a bit of testing, the TOC gets displayed only if the watchlist contains 31 or more items on it. The number of namespaces doesn't matter (EDIT: sorry, at least two namespaces are required).

BTW this looks like another bug. The watchlist is appearing unstyled and not showing in the sidebar like it should be (we should open a new ticket for that!). This page however doesn't have a max-width so shouldn't be impacted.

Jdlrobson lowered the priority of this task from Unbreak Now! to High.Aug 22 2022, 5:24 PM

Change 825280 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/Vector@wmf/1.39.0-wmf.25] Layout: Restore disabling of max width on certain pages

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

Change 825280 merged by jenkins-bot:

[mediawiki/skins/Vector@wmf/1.39.0-wmf.25] Layout: Restore disabling of max width on certain pages

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

Mentioned in SAL (#wikimedia-operations) [2022-08-22T20:51:36Z] <urbanecm@deploy1002> Synchronized php-1.39.0-wmf.25/skins/Vector/: e0ff7634ac529acec6d298992b45b23203b682c1: Layout: Restore disabling of max width on certain pages (T315460) (duration: 03m 37s)

Jdlrobson set the point value for this task to 0.Aug 29 2022, 5:36 PM

(skipping estimate since it was a regression relating to estimated work)

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

https://patchdemo.wmflabs.org/wikis/df95bfe300/w/