From dba127d626c709bcdd2912c5e04235c445d32cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Souk=C3=A9ina=20Bojabza?= Date: Fri, 7 Oct 2022 15:29:50 +0000 Subject: [PATCH] [FIX] web_editor, *: remove some inner content dropzones in Carousel *: website When dragging inner contents, dropzones appear in the Carousel snippet, allowing to drop them directly in the element with the `row` class, where it should not be the case. This is due to the `content` class present on these elements and to the drop-in rule for inner contents that allows them to be dropped in elements having this class. This commit fixes this issue: - in stable: as the XML files cannot be modified, the drop-in rule is patched in JS to exclude the elements having both the `content` and `row` classes. - in master: it removes the `content` classes from the rows of the Carousel snippet. It also removes this class from the drop-in rule, as only Carousel was concerned by it. See [1] for the following of this fix in design-themes. [1]: https://github.com/odoo/design-themes/pull/603 task-3011192 closes odoo/odoo#108646 X-original-commit: 882c483ec1107879cd1c5693ea5cfce08e3220cc Related: odoo/design-themes#628 Signed-off-by: Vray Benjamin (bvr) Signed-off-by: Quentin Smetz (qsm) --- addons/website/views/snippets/s_carousel.xml | 6 +++--- addons/website/views/snippets/snippets.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/website/views/snippets/s_carousel.xml b/addons/website/views/snippets/s_carousel.xml index 72fe5e63bc4..8476fb8afe4 100644 --- a/addons/website/views/snippets/s_carousel.xml +++ b/addons/website/views/snippets/s_carousel.xml @@ -16,7 +16,7 @@