mirror of
https://github.com/friendica/friendica
synced 2024-11-10 07:42:53 +00:00
Merge pull request #13517 from MrPetovan/bug/13506-inline-image-width-allocation
Set allocated max width for inline images we have dimensions of
This commit is contained in:
commit
8968c63fcc
1 changed files with 1 additions and 0 deletions
|
@ -3307,6 +3307,7 @@ class Item
|
||||||
return Renderer::replaceMacros(Renderer::getMarkupTemplate('content/image/single_with_height_allocation.tpl'), [
|
return Renderer::replaceMacros(Renderer::getMarkupTemplate('content/image/single_with_height_allocation.tpl'), [
|
||||||
'$image' => $PostMedia,
|
'$image' => $PostMedia,
|
||||||
'$allocated_height' => $PostMedia->getAllocatedHeight(),
|
'$allocated_height' => $PostMedia->getAllocatedHeight(),
|
||||||
|
'$allocated_max_width' => ($PostMedia->previewWidth ?? $PostMedia->width) . 'px',
|
||||||
]);
|
]);
|
||||||
}, $s);
|
}, $s);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue