From: Jérémy Fabre Date: Mon, 24 Oct 2016 09:26:02 +0000 (+0200) Subject: Fix some element ratios on mobile devices X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=0837329c9b74631b36baed1380ff216128df5715;p=mezzo.git Fix some element ratios on mobile devices --- diff --git a/app/templates/network/inc/person/list_square_style.html b/app/templates/network/inc/person/list_square_style.html index 1f9958e3..17b90fdb 100644 --- a/app/templates/network/inc/person/list_square_style.html +++ b/app/templates/network/inc/person/list_square_style.html @@ -30,7 +30,7 @@ {% for person_list_block_inline in person_list_block.person_list_block_inlines.all %} -
+
{% with person_list_block_inline.person as person %} diff --git a/app/templates/shop/includes/product_list_square_style.html b/app/templates/shop/includes/product_list_square_style.html index a1ae548f..9b6922ab 100644 --- a/app/templates/shop/includes/product_list_square_style.html +++ b/app/templates/shop/includes/product_list_square_style.html @@ -13,34 +13,38 @@
-
- {% for product_inline in list.products.all %} - {% with product_inline.product as product %} - {% with product.links.all|get_type_link:"link" as links %} - {% with product.prestashop_products.all as prestashop_products %} -
-
- {% if product.images.all %} - -
- product -
-
- {% endif %} -
-

{{ product.title }}

- {% if product.description %} -
{{ product.description|richtext_filters|safe|truncatechars_html:100 }}
- {% elif product.content %} -
{{ product.content|richtext_filters|safe|truncatechars_html:100 }}
- {% endif %} +
+
+
+ {% for product_inline in list.products.all %} + {% with product_inline.product as product %} + {% with product.links.all|get_type_link:"link" as links %} + {% with product.prestashop_products.all as prestashop_products %} +
+
+ {% if product.images.all %} + +
+ product +
+
+ {% endif %} +
+

{{ product.title }}

+ {% if product.description %} +
{{ product.description|richtext_filters|safe|truncatechars_html:100 }}
+ {% elif product.content %} +
{{ product.content|richtext_filters|safe|truncatechars_html:100 }}
+ {% endif %} +
+
-
-
- {% endwith %} - {% endwith %} - {% endwith %} - {% endfor %} + {% endwith %} + {% endwith %} + {% endwith %} + {% endfor %} +
+