From e22df99abdfe863c4507e22b653cac8933482a3f Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 7 Oct 2023 17:13:36 -0400 Subject: [PATCH] Set allocated max width for inline images we have dimensions of --- src/Model/Item.php | 1 + 1 file changed, 1 insertion(+) 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 {