mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
Merge "Break words in the category dialog"
This commit is contained in:
commit
0be4835151
|
@ -385,7 +385,7 @@
|
|||
outline: none;
|
||||
}
|
||||
|
||||
/* ve.ui.CategoryListWidget */
|
||||
/* ve.ui.MWCategoryWidget */
|
||||
|
||||
.ve-ui-mwCategoryListWidget {
|
||||
border: 1px solid #CCC;
|
||||
|
@ -393,11 +393,22 @@
|
|||
padding: .75em;
|
||||
}
|
||||
|
||||
.ve-ui-mwCategoryListWidget-items {
|
||||
/* MDN claims we need to use word-wrap: break-word; and that it's been renamed to
|
||||
* overflow-wrap: break-word; , but the only thing that actually works in practice is
|
||||
* word-break: break-word; (which is not documented in any standard at all). So we just use
|
||||
* all three.
|
||||
*/
|
||||
word-break: break-word;
|
||||
word-wrap: break-word;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.ve-ui-mwCategoryInputWidget {
|
||||
float: left;
|
||||
}
|
||||
|
||||
/* ve.ui.CategoryListItemWidget */
|
||||
/* ve.ui.MWCategoryListItemWidget */
|
||||
|
||||
.ve-ui-mwCategoryListItemWidget {
|
||||
position: relative;
|
||||
|
|
|
@ -49,7 +49,7 @@ ve.ui.MWCategoryWidget = function VeUiMWCategoryWidget( config ) {
|
|||
// Initialization
|
||||
this.$.addClass( 've-ui-mwCategoryListWidget' )
|
||||
.append(
|
||||
this.$group,
|
||||
this.$group.addClass( 've-ui-mwCategoryListWidget-items' ),
|
||||
this.input.$,
|
||||
this.$$( '<div>' ).css( 'clear', 'both' )
|
||||
);
|
||||
|
@ -59,6 +59,8 @@ ve.ui.MWCategoryWidget = function VeUiMWCategoryWidget( config ) {
|
|||
|
||||
ve.inheritClass( ve.ui.MWCategoryWidget, ve.ui.Widget );
|
||||
|
||||
ve.mixinClass( ve.ui.MWCategoryWidget, ve.ui.GroupElement );
|
||||
|
||||
/* Events */
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue