From 59b2c10cbfa1f5a07287db87a37db69d26e1dd92 Mon Sep 17 00:00:00 2001 From: "Maruan Aguerdouh (magm)" Date: Tue, 29 Aug 2023 11:14:11 +0200 Subject: [PATCH] [FIX] website_sale: add to cart modal properly displayed on list view Made the modal for add to cart to be the same when in Grid view and list view. We achieve this by modifying the css inside `#products_grid.o_wsale_layout_list`. opw-3235969 closes odoo/odoo#134699 X-original-commit: 643141dd284f1da869f540dd7aabbe9753eec3a5 Signed-off-by: Antoine Vandevenne (anv) Signed-off-by: Maruan Aguerdouh Mohtar (magm) --- .../static/src/scss/website_sale.scss | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/addons/website_sale/static/src/scss/website_sale.scss b/addons/website_sale/static/src/scss/website_sale.scss index d9fcc30df40..0cfed71af61 100644 --- a/addons/website_sale/static/src/scss/website_sale.scss +++ b/addons/website_sale/static/src/scss/website_sale.scss @@ -21,6 +21,24 @@ $o-wsale-products-layout-grid-gutter-width: min($grid-gutter-width / 2, $o-wsale display: if($-list, block, inline-block); width: if($-list, 100%, 50%); } + + .modal-dialog { + table, tbody, tr, td { + display: revert; + } + } + + @media screen and (max-width: 768px){ + .oe_advanced_configurator_modal { + table, tbody, tr, td { + display: block; + width: 100%; + } + thead { + display: none; + } + } + } } }