projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ec6c6e
)
Set allocated max width for inline images we have dimensions of
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Sat, 7 Oct 2023 21:13:36 +0000
(17:13 -0400)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Sat, 7 Oct 2023 21:13:36 +0000
(17:13 -0400)
src/Model/Item.php
patch
|
blob
|
history
diff --git
a/src/Model/Item.php
b/src/Model/Item.php
index 457d76ec78c271f31e83b939ed424000503336a2..27bb58c78e9b9b3fd1ee7cb507afaa7dd0b323e1 100644
(file)
--- 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 {