Skip to content

Commit 4ae54ca

Browse files
vidarlSteveb-p
andauthored
Made template for showing image_field in admin-ui more robust (#1387)
* Made template for showing image_field in admin-ui more robust * Update src/bundle/Resources/views/themes/admin/ui/field_type/preview/content_fields.html.twig Co-authored-by: Paweł Niedzielski <[email protected]> --------- Co-authored-by: Paweł Niedzielski <[email protected]>
1 parent 5d3d38c commit 4ae54ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bundle/Resources/views/themes/admin/ui/field_type/preview/content_fields.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@
447447
<td>{{ 'ezimage.master_dimensions'|trans|desc('Master dimensions') }}:</td>
448448
<td>{{ 'ezimage.width_and_height'|trans({'%width%': field.value.width, '%height%': field.value.height})|desc('Width: %width%px height: %height%px') }}</td>
449449
</tr>
450-
{% if field.value.height != '0' %}
450+
{% if field.value.height %}
451451
<tr class="ibexa-field-preview__meta-value-row">
452452
<td>{{ 'ezimage.ratio'|trans|desc('Ratio') }}:</td>
453453
<td>{{ (field.value.width/field.value.height)|round(2) }}</td>

0 commit comments

Comments
 (0)