mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-12 01:09:20 +00:00
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:
parent
d150131561
commit
86c64edb9c
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue