Merge "Set traditional galleries to inline-block to get correct width"

This commit is contained in:
jenkins-bot 2014-06-11 22:28:11 +00:00 committed by Gerrit Code Review
commit 0898f8e7c6
3 changed files with 15 additions and 0 deletions

View file

@ -1169,6 +1169,7 @@ $wgResourceModules += array(
'modules/ve-mw/ui/tools/ve.ui.MWGalleryInspectorTool.js',
),
'styles' => array(
'modules/ve-mw/ce/styles/nodes/ve.ce.MWGalleryNode.css',
'modules/ve-mw/ui/styles/inspectors/ve.ui.MWGalleryInspector.css',
),
'dependencies' => array(

View file

@ -18,6 +18,9 @@
ve.ce.MWGalleryNode = function VeCeMWGalleryNode( model, config ) {
// Parent constructor
ve.ce.MWBlockExtensionNode.call( this, model, config );
// DOM changes
this.$element.addClass( 've-ce-mwGalleryNode' );
};
/* Inheritance */

View file

@ -0,0 +1,11 @@
/*!
* VisualEditor ContentEditable MediaWiki MWGalleryNode styles.
*
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
.ve-ce-mwGalleryNode .mw-gallery-traditional {
/* Use inline-block to avoid over-sized shields */
display: inline-block
}