[FIX] website: restore the masonry snippet's options
Since [1], it was not possible to control the color of colored boxes in the masonry snippet. Hopefully, the new selector to exclude some options on "snippets inside snippets" is now more limited. [1]: https://github.com/odoo/odoo/commit/58503a248e7ab6b66d61d00869cdae6719e5a068 Part of https://github.com/odoo/odoo/pull/67361 task-2463033
This commit is contained in:
@@ -474,7 +474,7 @@
|
||||
<t t-set="only_bg_image_exclude" t-value="''"/>
|
||||
|
||||
<t t-set="both_bg_color_image_selector" t-value="'section, .carousel-item, .s_masonry_block .row > div, .s_color_blocks_2 .row > div, .parallax'"/>
|
||||
<t t-set="both_bg_color_image_exclude" t-value="base_only_bg_image_selector + ', .s_carousel_wrapper, .s_color_blocks_2, .s_image_gallery .carousel-item, .s_google_map, .s_map, [data-snippet] .row > div *'"/>
|
||||
<t t-set="both_bg_color_image_exclude" t-value="base_only_bg_image_selector + ', .s_carousel_wrapper, .s_color_blocks_2, .s_image_gallery .carousel-item, .s_google_map, .s_map, [data-snippet] :not(.oe_structure) > [data-snippet]'"/>
|
||||
|
||||
<t t-call="web_editor.snippet_options_background_options">
|
||||
<t t-set="selector" t-value="both_bg_color_image_selector"/>
|
||||
@@ -1036,7 +1036,7 @@
|
||||
|
||||
<!-- Stretch section -->
|
||||
<div data-js="ContainerWidth" data-selector="section, .s_carousel .carousel-item, s_quotes_carousel .carousel-item"
|
||||
data-exclude="[data-snippet] .row > div *" data-target="> .container, > .container-fluid, > .o_container_small">
|
||||
data-exclude="[data-snippet] :not(.oe_structure) > [data-snippet]" data-target="> .container, > .container-fluid, > .o_container_small">
|
||||
<we-button-group string="Content Width">
|
||||
<we-button data-select-class="o_container_small"
|
||||
data-img="/website/static/src/img/snippets_options/content_width_small.svg"
|
||||
@@ -1051,7 +1051,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Scroll to next section button (only for full height) -->
|
||||
<div data-js="ScrollButton" data-selector="section" data-exclude="[data-snippet] .row > div *">
|
||||
<div data-js="ScrollButton" data-selector="section" data-exclude="[data-snippet] :not(.oe_structure) > [data-snippet]">
|
||||
<!-- Min height of section -->
|
||||
<we-button-group string="Height" data-show-scroll-button="">
|
||||
<we-button data-name="minheight_auto_opt" data-select-class="" title="Fit content">Auto</we-button>
|
||||
|
||||
Reference in New Issue
Block a user