From: Hypolite Petovan Date: Sat, 7 Oct 2023 21:13:36 +0000 (-0400) Subject: Set allocated max width for inline images we have dimensions of X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e22df99abdfe863c4507e22b653cac8933482a3f;p=friendica.git Set allocated max width for inline images we have dimensions of --- diff --git a/src/Model/Item.php b/src/Model/Item.php index 457d76ec78..27bb58c78e 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -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 {