From 4e6caf19a241aafd46785bb4da2ac3700d52b4a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= <ged@odoo.com> Date: Fri, 11 Dec 2015 10:26:31 +0100 Subject: [PATCH] [FIX] im_livechat: style chat windows in im_livechat They are hidden in mobile mode, but we don't want to deactivate chat windows in website livechat. --- .../static/src/less/im_livechat.less | 80 +++++++++++-------- 1 file changed, 45 insertions(+), 35 deletions(-) diff --git a/addons/im_livechat/static/src/less/im_livechat.less b/addons/im_livechat/static/src/less/im_livechat.less index dd1de748a845..ce1a25a02fc6 100644 --- a/addons/im_livechat/static/src/less/im_livechat.less +++ b/addons/im_livechat/static/src/less/im_livechat.less @@ -18,52 +18,62 @@ border-top-right-radius: 5px; } -/* Livechat Rating : feedback smiley */ -.o_chat_window .o_chat_content .o_livechat_rating { - padding: 15px; +.o_chat_window { + display: flex; + max-height: 100%; + max-width: 100%; + z-index: 1000; // to go over the navbar + .o_thread_date_separator { + display: none; + } + + .o_chat_content .o_livechat_rating { + /* Livechat Rating : feedback smiley */ + padding: 15px; - .o_livechat_no_feedback { - padding-top: 20px; - text-align: right; - font-size: 12px; + .o_livechat_no_feedback { + padding-top: 20px; + text-align: right; + font-size: 12px; - > em { - cursor: pointer; + > em { + cursor: pointer; + } } - } - .o_livechat_rating_feedback_text { - text-align: justify; - } + .o_livechat_rating_feedback_text { + text-align: justify; + } - .o_livechat_rating_choices { - margin: 10px 0; - text-align: center; + .o_livechat_rating_choices { + margin: 10px 0; + text-align: center; - > img { - width: 50px; - opacity: 0.60; - cursor: pointer; - margin: 5px; - &:hover, &.selected { - opacity: 1; + > img { + width: 50px; + opacity: 0.60; + cursor: pointer; + margin: 5px; + &:hover, &.selected { + opacity: 1; + } } } - } - /* feedback reason */ - .o_livechat_rating_reason { - margin: 10px 0; - display: none; /* hidden by default */ + /* feedback reason */ + .o_livechat_rating_reason { + margin: 10px 0; + display: none; /* hidden by default */ - > textarea { - width: 100%; - height: 70px; - resize: none; + > textarea { + width: 100%; + height: 70px; + resize: none; + } } - } - .o_livechat_rating_reason_button > input { - float: right; + .o_livechat_rating_reason_button > input { + float: right; + } } } -- GitLab