From b38d3b837ba206c3e342faef3519157d0313b3e5 Mon Sep 17 00:00:00 2001 From: mano-odoo Date: Thu, 2 Nov 2023 16:48:42 +0100 Subject: [PATCH] [FIX] web, mail: searchbar facet cog overlapping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When discuss is not installed, hovering a facet in the searchbar makes the cog overlap the icon/text. This is due to the `o-bg-inherit` class which is set in the mail module. Therefore if discuss is not installed, the SCSS for the background doesn't exist. This commit moves the `o-bg-inherit` as a new utility class `bg-inherit` , allowing it to be used even if no apps are installed. Therefore also renaming the occurences of `o-bg-inherit` into `bg-inherit`. task-3575837 closes odoo/odoo#140334 Signed-off-by: Alexandre Kühn (aku) --- addons/mail/static/src/core/common/core.scss | 4 ---- addons/mail/static/src/core/common/im_status.xml | 2 +- .../mail/static/src/core/common/message_reaction_menu.xml | 2 +- .../mail/static/src/core/web/discuss_sidebar_mailboxes.xml | 4 ++-- addons/mail/static/src/core/web/notification_item.xml | 2 +- .../static/src/discuss/core/common/channel_member_list.xml | 2 +- .../src/discuss/core/web/discuss_sidebar_categories.xml | 6 +++--- addons/web/static/src/scss/bootstrap_review_backend.scss | 5 +++++ addons/web/static/src/search/search_bar/search_bar.xml | 2 +- 9 files changed, 15 insertions(+), 14 deletions(-) diff --git a/addons/mail/static/src/core/common/core.scss b/addons/mail/static/src/core/common/core.scss index edf4529b370..cb55b44d9a6 100644 --- a/addons/mail/static/src/core/common/core.scss +++ b/addons/mail/static/src/core/common/core.scss @@ -2,10 +2,6 @@ background-color: rgba(0, 0, 0, var(--bg-opacity, 1)); } -.o-bg-inherit { - background-color: inherit; -} - .o-discuss-badge { --o-discuss-badge-bg: #{$o-success}; // sync with --o-navbar-badge-bg color: white !important; diff --git a/addons/mail/static/src/core/common/im_status.xml b/addons/mail/static/src/core/common/im_status.xml index f8749c76c15..33489dc4c49 100644 --- a/addons/mail/static/src/core/common/im_status.xml +++ b/addons/mail/static/src/core/common/im_status.xml @@ -2,7 +2,7 @@ -
+
diff --git a/addons/mail/static/src/core/common/message_reaction_menu.xml b/addons/mail/static/src/core/common/message_reaction_menu.xml index 0f2966a86fb..236f34530ba 100644 --- a/addons/mail/static/src/core/common/message_reaction_menu.xml +++ b/addons/mail/static/src/core/common/message_reaction_menu.xml @@ -18,7 +18,7 @@
-
diff --git a/addons/mail/static/src/core/web/discuss_sidebar_mailboxes.xml b/addons/mail/static/src/core/web/discuss_sidebar_mailboxes.xml index c7b72ea1b51..4cc7971c8a0 100644 --- a/addons/mail/static/src/core/web/discuss_sidebar_mailboxes.xml +++ b/addons/mail/static/src/core/web/discuss_sidebar_mailboxes.xml @@ -19,12 +19,12 @@