Set allocated max width for inline images we have dimensions of

This commit is contained in:
Hypolite Petovan 2023-10-07 17:13:36 -04:00
parent 6ec6c6e317
commit e22df99abd

View File

@ -3307,6 +3307,7 @@ class Item
return Renderer::replaceMacros(Renderer::getMarkupTemplate('content/image/single_with_height_allocation.tpl'), [
'$image' => $PostMedia,
'$allocated_height' => $PostMedia->getAllocatedHeight(),
'$allocated_max_width' => ($PostMedia->previewWidth ?? $PostMedia->width) . 'px',
]);
}, $s);
} else {