mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
Make edit notices popup wider (320 -> 450)
Bug: T184379 Change-Id: Id2df8f8d162db3389206666fa07ea4cc0be8cdec
This commit is contained in:
parent
9840316ee9
commit
d5a61eb95d
|
@ -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 } )
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue