Add class to div for custom styling

This commit is contained in:
Hannes Heute 2024-03-26 14:04:05 +01:00
parent 0fd5c00010
commit 71a9e6112e
1 changed files with 1 additions and 1 deletions

View 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}}">