mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
fix: Add missing close button if bubble is hidden (#1435)
This commit is contained in:
@@ -34,7 +34,10 @@ export const IFrameHelper = {
|
||||
iframe.id = 'chatwoot_live_chat_widget';
|
||||
iframe.style.visibility = 'hidden';
|
||||
|
||||
const holderClassName = `woot-widget-holder woot--hide woot-elements--${window.$chatwoot.position}`;
|
||||
let holderClassName = `woot-widget-holder woot--hide woot-elements--${window.$chatwoot.position}`;
|
||||
if (window.$chatwoot.hideMessageBubble) {
|
||||
holderClassName += ` woot-widget--without-bubble`;
|
||||
}
|
||||
addClass(widgetHolder, holderClassName);
|
||||
widgetHolder.appendChild(iframe);
|
||||
body.appendChild(widgetHolder);
|
||||
@@ -114,6 +117,9 @@ export const IFrameHelper = {
|
||||
},
|
||||
|
||||
setBubbleLabel(message) {
|
||||
if (window.$chatwoot.hideMessageBubble) {
|
||||
return;
|
||||
}
|
||||
setBubbleText(window.$chatwoot.launcherTitle || message.label);
|
||||
},
|
||||
|
||||
|
||||
@@ -115,6 +115,10 @@ export const SDK_CSS = `.woot-widget-holder {
|
||||
z-index: -1 !important;
|
||||
}
|
||||
|
||||
.woot-widget--without-bubble {
|
||||
bottom: 20px !important;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 667px) {
|
||||
.woot-widget-holder {
|
||||
height: 100%;
|
||||
|
||||
Reference in New Issue
Block a user