diff --git a/resources/mmv/ui/mmv.ui.reuse.dialog.js b/resources/mmv/ui/mmv.ui.reuse.dialog.js index 7981d5b40..b41199b0c 100644 --- a/resources/mmv/ui/mmv.ui.reuse.dialog.js +++ b/resources/mmv/ui/mmv.ui.reuse.dialog.js @@ -61,12 +61,10 @@ } this.reuseTabs = new oo.ui.MenuSelectWidget( { + autoHide: false, classes: [ 'mw-mmv-reuse-tabs' ] } ); - - // MenuSelectWidget has a nasty tendency to hide itself, maybe we're not using it right? - this.reuseTabs.hide = $.noop; - this.reuseTabs.$element.show().appendTo( this.$dialog ); + this.reuseTabs.$element.appendTo( this.$dialog ); this.tabs = { share: new mw.mmv.ui.reuse.Share( this.$dialog ), @@ -83,6 +81,10 @@ this.ooTabs.embed ] ); + // MenuSelectWidget has a nasty tendency to hide itself, maybe we're not using it right? + this.reuseTabs.toggle( true ); + this.reuseTabs.toggle = $.noop; + this.selectedTab = this.getLastUsedTab(); // In case nothing is saved in localStorage or it contains junk diff --git a/resources/mmv/ui/mmv.ui.reuse.dialog.less b/resources/mmv/ui/mmv.ui.reuse.dialog.less index 2a063775f..3ded3812d 100644 --- a/resources/mmv/ui/mmv.ui.reuse.dialog.less +++ b/resources/mmv/ui/mmv.ui.reuse.dialog.less @@ -12,6 +12,8 @@ position: static; box-shadow: none; + padding-bottom: 0; // OOUI override + border: none; // OOUI override border-bottom: @divider-border-height solid @divider-color; .box-round(@border-radius @border-radius 0 0);