[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) <anv@odoo.com>
Signed-off-by: Maruan Aguerdouh Mohtar (magm) <magm@odoo.com>
This commit is contained in:
Maruan Aguerdouh (magm)
2023-09-15 10:48:27 +00:00
parent 4aa5f00dc9
commit 59b2c10cbf
@@ -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;
}
}
}
}
}