mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
Merge "Make MWGalleryInspector wider"
This commit is contained in:
commit
4c36d6e9c6
|
@ -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',
|
||||
),
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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%;
|
||||
}
|
Loading…
Reference in a new issue