search image heigth fixes

This commit is contained in:
vabene1111 2020-05-02 22:10:02 +02:00
parent 07a0a3f598
commit 18888bc3ae

View File

@ -11,17 +11,17 @@
{% block table %}
<table {% render_attrs table.attrs class="table" %}>
{% for row in table.paginated_rows %}
<div class="card" style="margin-top: 2px">
<div class="card" style="margin-top: 2px;">
<div class="row no-gutters">
<div class="col-md-4">
{% if row.cells.image|length > 1 %}
<img src=" {{ row.cells.image }}" alt="{% trans 'Recipe Image' %}"
class="card-img" style="object-fit: cover; height: 10vh">
class="card-img" style="object-fit: cover;height: 130px">
{% else %}
<img src="{% static 'recipe_no_image.svg' %}"
alt="{% trans 'Recipe Image' %}"
class="card-img d-none d-lg-block"
style="object-fit: inherit; height: 10vh">
style="object-fit: inherit; height: 130px">
{% endif %}
</div>