diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js index fff87e99883..feafcd135c3 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -5266,6 +5266,10 @@ registry.layout_column = SnippetOptionWidget.extend({ // were marked as such as they were allowed to have bare content in // the first place. return this.$target.is('.s_allow_columns'); + } else if (widgetName === "column_count_opt") { + // Hide the selectCount widget if the `s_nb_column_fixed` class is + // on the row. + return !this.$target[0].querySelector(":scope > .row.s_nb_column_fixed"); } return this._super(...arguments); }, diff --git a/addons/website/views/snippets/snippets.xml b/addons/website/views/snippets/snippets.xml index e47ca2bd3bc..d660b4cb705 100644 --- a/addons/website/views/snippets/snippets.xml +++ b/addons/website/views/snippets/snippets.xml @@ -492,7 +492,7 @@
- + None 1 2 @@ -528,7 +528,7 @@ Grid Cols - + None 1 2