]> git.mxchange.org Git - friendica.git/commitdiff
Add class to div for custom styling
authorHannes Heute <haheute@posteo.de>
Tue, 26 Mar 2024 13:04:05 +0000 (14:04 +0100)
committerHannes Heute <haheute@posteo.de>
Tue, 26 Mar 2024 13:04:05 +0000 (14:04 +0100)
view/templates/content/image/single_with_height_allocation.tpl

index 60b4669e3e9efcaa5678bdf6b7f08650bc2c9797..9d117ab592563b3017c4bc164224b8dfa13a5733 100644 (file)
@@ -2,7 +2,7 @@
        As a result, we need to add a wrapping element for non-flex (non-image grid) environments, mostly single-image cases.
  *}}
 {{if $allocated_max_width}}
-<div style="max-width: {{$allocated_max_width|default:"auto"}};">
+<div class="allocated-max-width" style="max-width: {{$allocated_max_width|default:"auto"}};">
 {{/if}}
 
 <figure class="img-allocated-height" style="width: {{$allocated_width|default:"auto"}}; padding-bottom: {{$allocated_height}}">