summaryrefslogtreecommitdiff
path: root/addons/im_livechat/static/src
diff options
context:
space:
mode:
authorRomain Estievenart <res@odoo.com>2020-08-13 09:18:50 +0000
committerRomain Estievenart <res@odoo.com>2020-08-14 15:18:35 +0000
commit71b44f15dd5e516faf9e95083157f9abbd8e65d1 (patch)
tree4c7731d34e5ed1fd1e106824ae002f71580e8c0b /addons/im_livechat/static/src
parentc06bb52f57f4719af7da944de2971556d03caff1 (diff)
[FIX] im_livechat, website_event_track_online: avoid overlapping banners
On mobile devices, when you go for the first time inside the event public page the PWA install bar and the livechat tooltip are displayed at same area. Because of this it's was difficult to click on the "install" button. X-original-commit: 6705c6b6fe0360f95b4a499a9141f876648b7202
Diffstat (limited to 'addons/im_livechat/static/src')
-rw-r--r--addons/im_livechat/static/src/legacy/public_livechat.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/addons/im_livechat/static/src/legacy/public_livechat.js b/addons/im_livechat/static/src/legacy/public_livechat.js
index 67d93ffab48..5a29d6e667f 100644
--- a/addons/im_livechat/static/src/legacy/public_livechat.js
+++ b/addons/im_livechat/static/src/legacy/public_livechat.js
@@ -110,6 +110,13 @@ var LivechatButton = Widget.extend({
if (this.options.button_text_color) {
this.$el.css('color', this.options.button_text_color);
}
+
+ // If website_event_track_online installed, put the livechat banner above the PWA banner.
+ var pwaBannerHeight = $('.o_pwa_install_banner').outerHeight(true);
+ if (pwaBannerHeight) {
+ this.$el.css('bottom', pwaBannerHeight + 'px');
+ }
+
return this._super();
},