From eb3aa203fa3033b6583a6ffddca7e80e6e1de0d2 Mon Sep 17 00:00:00 2001 From: Siddarth Gajjar Date: Thu, 12 Nov 2020 10:49:22 +0000 Subject: [IMP] website_livechat, *: properly position the chatbox in edit mode *: im_livechat Also, fix its unopened position so that it stays at the same horizontal position when opened. task-2369225 closes odoo/odoo#61649 Signed-off-by: Quentin Smetz (qsm) Co-authored-by: qsm-odoo --- addons/im_livechat/static/src/legacy/public_livechat.scss | 5 +++-- addons/website_livechat/static/src/bugfix/public_bugfix.scss | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'addons') diff --git a/addons/im_livechat/static/src/legacy/public_livechat.scss b/addons/im_livechat/static/src/legacy/public_livechat.scss index 0488eebde41..856889feb66 100644 --- a/addons/im_livechat/static/src/legacy/public_livechat.scss +++ b/addons/im_livechat/static/src/legacy/public_livechat.scss @@ -544,8 +544,9 @@ $o-mail-thread-window-zindex: $zindex-modal + 1 !default; .o_livechat_button { position: fixed; - bottom: 0px; - right: 6px; + right: 0; + bottom: 0; + margin-right: 12px; min-width: 100px; cursor: pointer; white-space: nowrap; diff --git a/addons/website_livechat/static/src/bugfix/public_bugfix.scss b/addons/website_livechat/static/src/bugfix/public_bugfix.scss index c4272e527b4..fff015c21de 100644 --- a/addons/website_livechat/static/src/bugfix/public_bugfix.scss +++ b/addons/website_livechat/static/src/bugfix/public_bugfix.scss @@ -4,3 +4,11 @@ * stable versions of Odoo. Any style that is defined in this file should be isolated * in its own file in master. */ + +.editor_has_snippets { + .o_livechat_button, .o_thread_window { + // TODO add this in an edit-mode only file in master (in 14.0 that asset + // would be website.assets_wysiwyg...) + right: $o-we-sidebar-width !important; + } +} -- cgit v1.2.3