From 6dd4ddab2b853c5094d355303521bd7800b0da59 Mon Sep 17 00:00:00 2001 From: xlu-odoo Date: Wed, 29 Sep 2021 14:00:21 +0000 Subject: [PATCH] [FIX] web_editor: fixing border-radius on dropdown menu entries Prior to this commit, every dropdown menu entries in the web editor had a border-radius on them. It didn't look consistent and clean. This commit fixes those menu entries by either removing or applying a correct border-radius. closes odoo/odoo#78492 X-original-commit: 0239ab7efcaf3895ffb14a56a0686cf5a80bb529 Signed-off-by: Quentin Smetz (qsm) --- addons/web_editor/static/src/scss/wysiwyg_snippets.scss | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss index 3c84ef456ae..98c96eb3cf7 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss @@ -726,6 +726,7 @@ body.editor_enable.editor_has_snippets { + * { display: none !important; border: $o-we-sidebar-content-field-dropdown-border-width solid $o-we-sidebar-content-field-dropdown-border-color; + border-radius: $o-we-item-border-radius; background-color: $o-we-sidebar-content-field-dropdown-bg; box-shadow: $o-we-sidebar-content-field-dropdown-shadow; } @@ -1012,6 +1013,7 @@ body.editor_enable.editor_has_snippets { background-clip: padding-box; background-color: $o-we-sidebar-content-field-dropdown-item-bg; color: $o-we-sidebar-content-field-dropdown-item-color; + border-radius: 0; > we-title { flex-grow: 1; @@ -1137,10 +1139,10 @@ body.editor_enable.editor_has_snippets { + we-button { border-left: none; } - &:first-child { + &:first-child, .active:first-child { @include border-left-radius($o-we-sidebar-content-field-border-radius); } - &:last-child { + &:last-child, .active:last-child { @include border-right-radius($o-we-sidebar-content-field-border-radius); } }