From 86c64edb9cd1f933e0a11693517435ee2d4e8bdd Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Tue, 22 Nov 2022 08:54:08 -0800 Subject: [PATCH] Bug: Fix when Vector 2022 sidebar collapses Vector 2022 sidebar is automatically collapsed on exactly 1000px breakpoint. Should do that at 999px. Bug: T321745 Change-Id: I052e99ccfda10786fabf54ea6cf089aeb3ce4e75 --- resources/skins.vector.js/sidebarPersistence.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/skins.vector.js/sidebarPersistence.js b/resources/skins.vector.js/sidebarPersistence.js index 4f637c0f4..5c9a51aaf 100644 --- a/resources/skins.vector.js/sidebarPersistence.js +++ b/resources/skins.vector.js/sidebarPersistence.js @@ -115,7 +115,7 @@ function init() { // When this happens the user must expand it again manually, to avoid conflicts with multiple // open windows (for example when an editor is viewing 2 articles side by side). if ( checkbox ) { - var mediaQuery = window.matchMedia( '(max-width: 1000px)' ); + var mediaQuery = window.matchMedia( '(max-width: 999px)' ); var onMediaQueryChangeCollapse = function ( /** @type {MediaQueryListEvent} */ event ) { if ( event.matches ) { // @ts-ignore we checked it already.