Переглянути джерело

Add Bootstrap responsive image class

master
jamesp9 2 роки тому
джерело
коміт
83dda118c1

+ 3
- 3
src/oscar/templates/oscar/catalogue/partials/gallery.html Переглянути файл

@@ -13,7 +13,7 @@
13 13
                 {% for image in all_images %}
14 14
                     <div class="carousel-item {% if forloop.first %}active{% endif %}">
15 15
                         {% oscar_thumbnail image.original "440x400" upscale=False as thumb %}
16
-                        <img src="{{ thumb.url }}" alt="{{ product.get_title }}" />
16
+                        <img src="{{ thumb.url }}" class="img-fluid" alt="{{ product.get_title }}" />
17 17
                     </div>
18 18
                 {% endfor %}
19 19
                 </div>
@@ -31,7 +31,7 @@
31 31
                 {% for image in all_images %}
32 32
                     <li data-target="#product_gallery" data-slide-to="{{ forloop.counter0 }}" class="{% if forloop.first %}active{% endif %}">
33 33
                         {% oscar_thumbnail image.original "65x55" crop="center" as thumb %}
34
-                        <img src="{{ thumb.url }}" alt="{{ product.get_title }}" />
34
+                        <img src="{{ thumb.url }}" class="img-fluid" alt="{{ product.get_title }}" />
35 35
                     </li>
36 36
                 {% endfor %}
37 37
             </ol>
@@ -46,7 +46,7 @@
46 46
                     <div class="carousel-item active">
47 47
                     {% with image=product.primary_image %}
48 48
                         {% oscar_thumbnail image.original "440x400" upscale=False as thumb %}
49
-                        <img src="{{ thumb.url }}" alt="{{ product.get_title }}" />
49
+                        <img src="{{ thumb.url }}" class="img-fluid" alt="{{ product.get_title }}" />
50 50
                     {% endwith %}
51 51
                     </div>
52 52
                 </div>

Завантаження…
Відмінити
Зберегти