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
This commit is contained in:
Jon Robson 2022-11-22 08:54:08 -08:00 committed by Jdlrobson
parent d150131561
commit 86c64edb9c

View file

@ -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.