Merge "Fix line height in templates used dialog"

This commit is contained in:
jenkins-bot 2023-03-13 12:50:00 +00:00 committed by Gerrit Code Review
commit 1156c83bd2

View file

@ -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' ) )
); );
} ); } );