mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +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'
|
||||
} );
|
||||
|
||||
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( {
|
||||
action: 'visualeditor',
|
||||
paction: 'templatesused',
|
||||
|
@ -44,10 +50,10 @@ ve.ui.MWTemplatesUsedPage = function VeUiMWTemplatesUsedPage() {
|
|||
} ).then( function ( templatesUsed ) {
|
||||
// templatesUsed is an array of nodes
|
||||
// eslint-disable-next-line no-jquery/no-append-html
|
||||
page.templatesUsedFieldset.$element.append( templatesUsed );
|
||||
ve.targetLinksToNewWindow( page.templatesUsedFieldset.$element[ 0 ] );
|
||||
page.templatesUsedFieldset.$group.append( templatesUsed );
|
||||
ve.targetLinksToNewWindow( page.templatesUsedFieldset.$group[ 0 ] );
|
||||
}, function () {
|
||||
page.templatesUsedFieldset.$element.append(
|
||||
page.templatesUsedFieldset.$group.append(
|
||||
$( '<em>' ).text( ve.msg( 'visualeditor-dialog-meta-templatesused-noresults' ) )
|
||||
);
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue