search image heigth fixes
This commit is contained in:
parent
07a0a3f598
commit
18888bc3ae
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user