Make edit notices popup wider (320 -> 450)

Bug: T184379
Change-Id: Id2df8f8d162db3389206666fa07ea4cc0be8cdec
This commit is contained in:
Ed Sanders 2018-02-28 19:21:40 +00:00
parent 9840316ee9
commit d5a61eb95d

View file

@ -15,10 +15,11 @@
* @param {string} title Title
* @param {OO.ui.ToolGroup} toolGroup
* @param {Object} [config]
* @cfg {number} [width] Popup width. Upstream default is 320.
*/
ve.ui.MWPopupTool = function VeUiMWPopupTool( title, toolGroup, config ) {
// Configuration initialization
config = ve.extendObject( { popup: { head: true, label: title } }, config );
config = ve.extendObject( { popup: { head: true, label: title, width: config && config.width } }, config );
// Parent constructor
ve.ui.MWPopupTool.super.call( this, toolGroup, config );
@ -45,7 +46,7 @@ ve.ui.MWNoticesPopupTool = function VeUiMWNoticesPopupTool( toolGroup, config )
this,
ve.msg( 'visualeditor-editnotices-tooltip' ),
toolGroup,
config
ve.extendObject( config, { width: 450 } )
);
};