Merge "Gallery image: Use thumbUrl if src is not set (new images)"

This commit is contained in:
jenkins-bot 2022-07-01 22:33:54 +00:00 committed by Gerrit Code Review
commit e2ecb537e9

View file

@ -991,7 +991,9 @@ ve.ui.MWGalleryDialog.prototype.insertOrUpdateNode = function () {
// Use original null/empty value
galleryItem.originalAltText :
galleryItem.altText,
src: galleryItem.src,
// For existing images use `src` to avoid triggering a diff if the
// thumbnail size changes. For new images we have to use `thumbUrl` (T310623).
src: galleryItem.src || galleryItem.thumbUrl,
height: size.height,
width: size.width,
tagName: galleryItem.tagName,