From 06885a11e93de020700243052dd69ec6e67e54b2 Mon Sep 17 00:00:00 2001 From: Antoine Guenet Date: Tue, 13 Jun 2023 14:57:10 +0000 Subject: [PATCH] [FIX] web_editor: make sidebar toolbar buttons smaller to avoid overflow When a scrollbar appears in the sidebar, the toolbar could end up being to wide, making a horizontal scrollbar appear. This commit makes the toolbar buttons smaller (smaller padding) to avoid this. closes odoo/odoo#119972 Signed-off-by: David Monjoie (dmo) --- addons/web_editor/static/src/scss/wysiwyg_snippets.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss index 881ce099b7d..10f3560318c 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss @@ -513,7 +513,7 @@ .btn { @extend %we-generic-button; display: flex; - padding: ($o-we-sidebar-content-field-height * .12) ($o-we-sidebar-content-field-button-group-button-spacing - 2); + padding: ($o-we-sidebar-content-field-height * .12) ($o-we-sidebar-content-field-button-group-button-spacing - 2.5); } #font-size > button {