From 3d7369dc10ac321504a45589cedaf7453f12f7f4 Mon Sep 17 00:00:00 2001 From: mafo-odoo Date: Tue, 2 Aug 2022 12:19:19 +0000 Subject: [PATCH] [FIX] website_sale: wrong css selector for visitor in product descprition Issue: The product descriptions on the /shop page (always shown if the product description option is checked) are shortened... but only if the user is logged in. It should also be the case for visitors. Explanation: Using css selector for data-oe stuff is a problem for visitors as they don't apply to them. To fix the issue we change the selector to a classic css class. opw-2926847 closes odoo/odoo#97379 X-original-commit: eb50e48c798e3a5f39fa333d4248973a31e16a9f Signed-off-by: William Braeckman (wbr) --- addons/website_sale/static/src/scss/website_sale.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale/static/src/scss/website_sale.scss b/addons/website_sale/static/src/scss/website_sale.scss index 91c5721a4db..adfcb5eb754 100644 --- a/addons/website_sale/static/src/scss/website_sale.scss +++ b/addons/website_sale/static/src/scss/website_sale.scss @@ -237,7 +237,7 @@ $o-wsale-products-layout-grid-gutter-width: min($grid-gutter-width / 2, $o-wsale padding: var(--o-wsale-card-info-padding, #{map-get($spacers, 2)} 0); } - [data-oe-field="description_sale"][data-oe-type] { + .oe_subdescription div { min-height: calc(#{$font-size-sm * 1.1} * 2); overflow: hidden; display: -webkit-box;