mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
Merge "Set traditional galleries to inline-block to get correct width"
This commit is contained in:
commit
0898f8e7c6
|
@ -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(
|
||||
|
|
|
@ -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 */
|
||||
|
|
11
modules/ve-mw/ce/styles/nodes/ve.ce.MWGalleryNode.css
Normal file
11
modules/ve-mw/ce/styles/nodes/ve.ce.MWGalleryNode.css
Normal 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
|
||||
}
|
Loading…
Reference in a new issue