Browse Source

product thumbnail height should now mostly be of equal height

master
Frederic 11 years ago
parent
commit
10a74a28f9
  1. 5
      cash/static/style.css
  2. 2
      cash/templates/cash/includes/product_list.html

5
cash/static/style.css

@ -9,3 +9,8 @@ body { @@ -9,3 +9,8 @@ body {
padding-right: 1em;
}
img.product-thumbnail {
height: 20ex;
max-width: 100%;
}

2
cash/templates/cash/includes/product_list.html

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
{% for p in products %}
<div class="{{ class|default:"col-xs-6 col-md-3" }}">
<div class="thumbnail">
<img src="{% if p.image_thumbnail %}{{ p.image_thumbnail.url }}{% else %}{% static "images/no-image.png" %}{% endif %}" alt="{% trans "Product image" %}" style="width: 100%" />
<img src="{% if p.image_thumbnail %}{{ p.image_thumbnail.url }}{% else %}{% static "images/no-image.png" %}{% endif %}" class="product-thumbnail" alt="{% trans "Product image" %}" />
<div class="caption">
<h3>{{ p.name }}</h3>
<h4>{{ p.price|floatformat:2 }} &euro;</h4>

Loading…
Cancel
Save