From 0837329c9b74631b36baed1380ff216128df5715 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Mon, 24 Oct 2016 11:26:02 +0200 Subject: [PATCH] Fix some element ratios on mobile devices --- .../network/inc/person/list_square_style.html | 2 +- .../includes/product_list_square_style.html | 58 ++++++++++--------- 2 files changed, 32 insertions(+), 28 deletions(-) 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 %} +
+
-- 2.39.5