mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +00:00
Merge "Fix line height in templates used dialog"
This commit is contained in:
commit
1156c83bd2
|
@ -29,6 +29,12 @@ ve.ui.MWTemplatesUsedPage = function VeUiMWTemplatesUsedPage() {
|
||||||
icon: 'puzzle'
|
icon: 'puzzle'
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
this.templatesUsedFieldset.$group.addClass( [
|
||||||
|
'mw-body-content',
|
||||||
|
// HACK: T287733
|
||||||
|
mw.config.get( 'skin' ) === 'vector' || mw.config.get( 'skin' ) === 'vector-2022' ? 'vector-body' : null
|
||||||
|
] );
|
||||||
|
|
||||||
target.getContentApi().get( {
|
target.getContentApi().get( {
|
||||||
action: 'visualeditor',
|
action: 'visualeditor',
|
||||||
paction: 'templatesused',
|
paction: 'templatesused',
|
||||||
|
@ -44,10 +50,10 @@ ve.ui.MWTemplatesUsedPage = function VeUiMWTemplatesUsedPage() {
|
||||||
} ).then( function ( templatesUsed ) {
|
} ).then( function ( templatesUsed ) {
|
||||||
// templatesUsed is an array of nodes
|
// templatesUsed is an array of nodes
|
||||||
// eslint-disable-next-line no-jquery/no-append-html
|
// eslint-disable-next-line no-jquery/no-append-html
|
||||||
page.templatesUsedFieldset.$element.append( templatesUsed );
|
page.templatesUsedFieldset.$group.append( templatesUsed );
|
||||||
ve.targetLinksToNewWindow( page.templatesUsedFieldset.$element[ 0 ] );
|
ve.targetLinksToNewWindow( page.templatesUsedFieldset.$group[ 0 ] );
|
||||||
}, function () {
|
}, function () {
|
||||||
page.templatesUsedFieldset.$element.append(
|
page.templatesUsedFieldset.$group.append(
|
||||||
$( '<em>' ).text( ve.msg( 'visualeditor-dialog-meta-templatesused-noresults' ) )
|
$( '<em>' ).text( ve.msg( 'visualeditor-dialog-meta-templatesused-noresults' ) )
|
||||||
);
|
);
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in a new issue