summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/scss
diff options
context:
space:
mode:
authorHiral Bhavsar <hbh@odoo.com>2020-05-13 13:13:38 +0000
committerHiral Bhavsar <hbh@odoo.com>2020-05-20 10:55:05 +0000
commit9f3a12b9f0c3ecfbeb58212a04e264ddc4e6f602 (patch)
tree4262487c828122a5cd27c0be8f238dd31796b00c /addons/mail/static/src/scss
parent798931fc39af963a6fae4feae5e35ccf362f6235 (diff)
[IMP] mail: display user avatar in chat-box header
PURPOSE We are currently working toward turning every user avatar (i.e. the round picture of the user) in a shortcut to open the chatbox to that user. It only makes sense to also have the user avatar in the header of the chatbox (like in Facebook) SPECIFICATION Replace the current IM status colored dot of the chatbox header by the same avatar/im_status compound currently used in the chatter. LINKS Closes https://github.com/odoo/odoo/pull/51258 Task-2256061 closes odoo/odoo#51258 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/scss')
-rw-r--r--addons/mail/static/src/scss/abstract_thread_window.scss20
1 files changed, 20 insertions, 0 deletions
diff --git a/addons/mail/static/src/scss/abstract_thread_window.scss b/addons/mail/static/src/scss/abstract_thread_window.scss
index ed001ab3562..3a7f028f2f2 100644
--- a/addons/mail/static/src/scss/abstract_thread_window.scss
+++ b/addons/mail/static/src/scss/abstract_thread_window.scss
@@ -29,6 +29,7 @@ $o-mail-thread-window-zindex: $zindex-modal + 1 !default;
}
.o_thread_window_header {
+ align-items: center;
display: flex;
flex: 0 0 auto;
color: white;
@@ -55,6 +56,25 @@ $o-mail-thread-window-zindex: $zindex-modal + 1 !default;
color: white;
}
}
+ .o_thread_window_avatar {
+ margin: -6px 6px -6px 0;
+ position: relative;
+
+ img {
+ height: 25px;
+ width: 25px;
+ border-radius: 50%;
+ }
+ span {
+ bottom: -4px;
+ right: -2px;
+ position: absolute;
+
+ .fa-circle-o {
+ display: none;
+ }
+ }
+ }
.o_thread_window_title {
cursor: pointer;