From 2ecfd542513b1a2f7f186931cf6f5cf972d386f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Mon, 15 May 2023 12:44:06 +0000 Subject: [PATCH] [FIX] mail: improve style from webclient redesign 1. show hover effect in discuss sidebar With redesign of web client style, hover effect in discuss sidebar was not longer working. This comes from buttons hover effect no longer having precedence to defined bg classnames, e.g. `bg-100`. This commit fixes the issue by explicitly defining a style for the background when hovering items in the discuss sidebar. 2. improved background color of discuss app in dark mode The background color was too dark. This commit fixes the issue by using `bg-view`, which is the preferred background to put content in both white and dark theme. 3. Send button visual matches composer rounded border Send button lacked its border. This commit fixes the issue by including Send button inside the element that does the pretty rounded border of composer. That way, the border of send button will not longer be affected by change of button style. Also make the send button active / inactive state more visible, by using button link (green when active, muted when inactive). Part-of: odoo/odoo#117357 --- addons/mail/static/src/composer/composer.scss | 8 ++++ addons/mail/static/src/composer/composer.xml | 41 +++++++++++-------- .../src/discuss_app/autoresize_input.xml | 2 +- .../mail/static/src/discuss_app/discuss.xml | 6 +-- .../static/src/web/discuss_app/sidebar.scss | 8 +++- .../static/src/web/discuss_app/sidebar.xml | 14 +++---- 6 files changed, 49 insertions(+), 30 deletions(-) diff --git a/addons/mail/static/src/composer/composer.scss b/addons/mail/static/src/composer/composer.scss index dff2d5de476..4283d5b5a90 100644 --- a/addons/mail/static/src/composer/composer.scss +++ b/addons/mail/static/src/composer/composer.scss @@ -32,6 +32,14 @@ } } +.o-mail-Composer-actions button { + opacity: 75%; + &:hover { + background-color: rgba(0, 0, 0, 0.1); + opacity: 100%; + } +} + .o-mail-Composer-input { padding-top: 10px; // carefully crafted to have the text in the middle in chat window padding-bottom: 10px; diff --git a/addons/mail/static/src/composer/composer.xml b/addons/mail/static/src/composer/composer.xml index 13631638bfe..371559c2133 100644 --- a/addons/mail/static/src/composer/composer.xml +++ b/addons/mail/static/src/composer/composer.xml @@ -31,7 +31,7 @@ t-att-class="{ 'border-top border-bottom': compact and !props.composer.message, 'border': props.composer.message, - 'border border-end-0 rounded-start-3' : normal, + 'border rounded-3' : normal, 'border rounded-3 align-self-stretch flex-column' : extended, }" > @@ -60,33 +60,27 @@ disabled="1" /> -
-
-
+ - +