Merge "Make MWGalleryInspector wider"

This commit is contained in:
jenkins-bot 2014-05-22 23:02:32 +00:00 committed by Gerrit Code Review
commit 4c36d6e9c6
3 changed files with 27 additions and 0 deletions

View file

@ -1158,6 +1158,9 @@ $wgResourceModules += array(
'modules/ve-mw/ui/inspectors/ve.ui.MWGalleryInspector.js',
'modules/ve-mw/ui/tools/ve.ui.MWGalleryInspectorTool.js',
),
'styles' => array(
'modules/ve-mw/ui/styles/inspectors/ve.ui.MWGalleryInspector.css',
),
'dependencies' => array(
'ext.visualEditor.mwcore',
),

View file

@ -19,6 +19,8 @@
ve.ui.MWGalleryInspector = function VeUiMWGalleryInspector( config ) {
// Parent constructor
ve.ui.MWExtensionInspector.call( this, config );
this.$element.addClass( 've-ui-mwGalleryInpsector' );
};
/* Inheritance */
@ -38,6 +40,14 @@ ve.ui.MWGalleryInspector.static.nodeModel = ve.dm.MWGalleryNode;
/* Methods */
/** */
ve.ui.MWGalleryInspector.prototype.initialize = function () {
// Parent method
ve.ui.MWExtensionInspector.prototype.initialize.call( this );
this.input.$element.addClass( 've-ui-mwGalleryInpsector-input' );
};
/** */
ve.ui.MWGalleryInspector.prototype.getInputPlaceholder = function () {
// 'File:' is always in content language

View file

@ -0,0 +1,14 @@
/*!
* VisualEditor MediaWiki UserInterface alien extension inspector styles.
*
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
.ve-ui-mwGalleryInpsector .oo-ui-frame {
width: 40em;
}
.ve-ui-mwGalleryInpsector-input {
width: 100%;
}