21.12.21 gallery image resize

This commit is contained in:
Metehan Celik 2021-12-21 16:00:46 +03:00
parent 992e04f926
commit 38d477ecc7
2 changed files with 8 additions and 7 deletions

View File

@ -11,7 +11,7 @@
{% for adv in advs %}
<div class="col-xl-4 col-lg-6">
<div class="d-flex flex-column product-hb border shadow-sm rounded">
<div class="d-flex flex-column product-hb gallery-card pb-3 px-1 border shadow-sm rounded">
{{ addBlock('list/extra-actions', {'ad': adv, 'vars': _context}, ['favs', 'comparisons'])|raw }}
<div class="product-image-hb">
<a href="{{ adv.detail_url }}">
@ -19,14 +19,14 @@
</a>
</div>
<div class="product-info-hb d-flex flex-column px-lg-3 px-2 mt-3">
<a href="{{ adv.detail_url }}" class="product-name-hb text-dark">
<a href="{{ adv.detail_url }}" class="product-name-hb px-lg-3 px-2 text-dark">
{{ adv.name }}
</a>
{% if not setting_value('visiosoft.module.advs::hide_ad_cat') %}
<a href="{{ adv.detail_url }}" class="product-name-hb text-dark">{{ adv.cat1_name }} /{{ adv.cat2_name }}</a>
<a href="{{ adv.detail_url }}" class="product-name-hb px-lg-3 px-2 text-dark">{{ adv.cat1_name }} /{{ adv.cat2_name }}</a>
{% endif %}
{% if showPrice %}
<div class="product-price-hb font-weight-bold mt-2 text-dark">
<div class="product-price-hb font-weight-bold px-lg-3 px-2 mt-2 text-dark">
{{ adv.price != '0' ? currency_format(adv.price,adv.currency) : trans('visiosoft.module.advs::field.free') }}
</div>
{% endif %}

View File

@ -38,7 +38,7 @@
Droid Sans,
Helvetica Neue,
sans-serif !important;
height: 315px;
height: 500px;
margin-bottom: 20px;
}
@ -58,13 +58,14 @@
.product-image-hb {
display: flex;
justify-content: center;
height: 190px;
width:100%;
height: 500px;
padding: 10px;
}
.product-image-in {
width: 100%;
height: 100%;
object-fit: contain;
}
.product-name-hb {