From e0ff7634ac529acec6d298992b45b23203b682c1 Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Mon, 22 Aug 2022 11:33:10 +0100 Subject: [PATCH] Layout: Restore disabling of max width on certain pages Bug: T315460 Depends-On: Id3ee4fe97461dbc80f7c163c3585a9df2957bae0 Change-Id: I9bad936c06150cd01d4e60f4a92a5c4d28b5fe16 (cherry picked from commit ecbe2c285528817d081ad2c8cc70df758bea4791) --- resources/skins.vector.styles/layouts/grid.less | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/skins.vector.styles/layouts/grid.less b/resources/skins.vector.styles/layouts/grid.less index 5cc774ab..bbf63ef6 100644 --- a/resources/skins.vector.styles/layouts/grid.less +++ b/resources/skins.vector.styles/layouts/grid.less @@ -33,8 +33,12 @@ // Note, we don't disable the max-width on .mw-article-toolbar-container intentionally // to support easier navigation between tabs. // See T293441 for further information on that. - max-width: none; - width: 100%; + // Both rules are !important as they are final. Max-width on a page should be restored by removing the `skin-vector-disable-max-width`, + // preferably by modification to the feature flag VectorMaxWidthOptions. Code should never attempt to override this rule. + /* stylelint-disable-next-line declaration-no-important */ + max-width: none !important; + /* stylelint-disable-next-line declaration-no-important */ + width: 100% !important; } }