Improved styling of image in structural entity select

This commit is contained in:
Jan Böhmer 2023-02-05 20:23:52 +01:00
parent 08b60cd149
commit 5ea791eac7
3 changed files with 23 additions and 4 deletions

View file

@ -181,6 +181,13 @@
{% endif %}
{% endmacro %}
{% macro entity_preview_xs(entity) %}
{# @var entity \App\Entity\Contracts\HasMasterAttachmentInterface #}
{% if entity.masterPictureAttachment and entity.masterPictureAttachment.picture and attachment_manager.fileExisting(entity.masterPictureAttachment) %}
<img src="{{ attachment_thumbnail(entity.masterPictureAttachment, 'thumbnail_xs') }}" class="entity-image-xs">
{% endif %}
{% endmacro %}
{% macro parameters_table(parameters) %}
<table class="table table-hover table-striped table-sm">
<thead>