N°4518 - ActivityPanel: Fix inline images being shrinked in quick edit

This commit is contained in:
Molkobain
2021-12-08 10:27:33 +01:00
parent 28ecb77bf1
commit d4da1b99d8
3 changed files with 35 additions and 10 deletions

View File

@@ -362,13 +362,8 @@ class InlineImage extends DBObject
{
$sJS =
<<<JS
$('img[data-img-id]').each(function() {
if ($(this).width() > {$iMaxWidth})
{
$(this).css({'max-width': '{$iMaxWidth}px', width: '', height: '', 'max-height': ''});
}
$(this).addClass('inline-image').attr('href', $(this).attr('src'));
}).magnificPopup({type: 'image', closeOnContentClick: true });
CombodoInlineImage.SetMaxWidth('{$iMaxWidth}');
CombodoInlineImage.FixImagesWidth();
JS
;
}