mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 09:44:41 +02:00
Improved styling of image in structural entity select
This commit is contained in:
parent
08b60cd149
commit
5ea791eac7
3 changed files with 23 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue