diff --git a/bundlesize.config.json b/bundlesize.config.json index 0c0ecb9d6..9d4716295 100644 --- a/bundlesize.config.json +++ b/bundlesize.config.json @@ -18,7 +18,7 @@ }, { "resourceModule": "mmv.bootstrap", - "maxSize": "5.6 kB" + "maxSize": "5.3 kB" } ] } diff --git a/resources/mmv.bootstrap/mmv.bootstrap.js b/resources/mmv.bootstrap/mmv.bootstrap.js index d247da603..f62784502 100644 --- a/resources/mmv.bootstrap/mmv.bootstrap.js +++ b/resources/mmv.bootstrap/mmv.bootstrap.js @@ -380,7 +380,7 @@ class MultimediaViewerBootstrap { // remove the buttons (and the clearing element) if they are already there // this should not happen (at least until we support paged media) but just in case // eslint-disable-next-line no-jquery/no-global-selector - $( '.mw-mmv-filepage-buttons' ).next().addBack().remove(); + $( '.mw-mmv-view-expanded' ).remove(); const $mmvButton = $( '