From 1653f39d53806060e4f32bc540f7e8bb5fa95010 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Mon, 12 Mar 2018 15:59:40 +0100 Subject: [PATCH] [FIX] website_sale: 40px for mobile/list view/desc When activating the list view of product and description, if the description was too big things were overflowing over their box and became unreadable. The issue is that the height limit on description was of 200px for tablet device and there was no lower limit. Thus the limit of an product line being 200px: the description + picture could break out of the box. With this change, the description at lowest width devices is limited to 40px as is the case for the grid view (which is very similar on low size devices). opw-1819184 closes #23604 --- addons/website_sale/static/src/css/website_sale.css | 3 +++ addons/website_sale/static/src/css/website_sale.sass | 2 ++ 2 files changed, 5 insertions(+) diff --git a/addons/website_sale/static/src/css/website_sale.css b/addons/website_sale/static/src/css/website_sale.css index 2fd9a68563a..cb626dbe794 100644 --- a/addons/website_sale/static/src/css/website_sale.css +++ b/addons/website_sale/static/src/css/website_sale.css @@ -323,6 +323,9 @@ top: 0; bottom: 65px; } + #products_grid .oe_product .oe_subdescription { + max-height: 40px; + } #products_grid .oe_product.oe_image_full .oe_product_image { bottom: 50px; diff --git a/addons/website_sale/static/src/css/website_sale.sass b/addons/website_sale/static/src/css/website_sale.sass index 6b8c5a155e6..0b80557ded3 100644 --- a/addons/website_sale/static/src/css/website_sale.sass +++ b/addons/website_sale/static/src/css/website_sale.sass @@ -284,6 +284,8 @@ .oe_product_image top: 0 bottom: 65px + .oe_subdescription + max-height: 40px #products_grid .oe_product.oe_image_full .oe_product_image