From 0431c497901e569afc0c792a29ef734b7a3bb8ce Mon Sep 17 00:00:00 2001 From: "stefanorigano (SRI)" Date: Thu, 6 Aug 2020 13:06:37 +0000 Subject: [PATCH] [IMP] web_editor: allow 'we-button-group' to increase its size Allow 'we-button-group' to increase its size when it's the only option inside an option field. Part of https://github.com/odoo/odoo/pull/55959 task-2157252 --- .../web_editor/static/src/scss/wysiwyg_snippets.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss index 27d0d967721..9710edfb17b 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss @@ -697,6 +697,18 @@ body.editor_enable.editor_has_snippets { } } } + // Only when main option (not in a we-row or something like that...) + we-customizeblock-option > we-button-group.o_we_user_value_widget we-selection-items { + @include large-component(); + + we-button { + display: flex; + justify-content: center; + flex: 0 1 percentage(1/3); + padding: 0 2px; + text-align: center; + } + } // Inputs we-input.o_we_user_value_widget {