feat(web): hide Chatwoot launcher bubble on mobile
Some checks failed
QA Gate (P0/P1) / Test affected app (pull_request) Has been cancelled
Some checks failed
QA Gate (P0/P1) / Test affected app (pull_request) Has been cancelled
Floating launcher covered content on small screens. Bubble is hidden below 768px via injected CSS; programmatic openChatwoot() callers (subscription page, onboarding modal) still open the fullscreen widget. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -68,6 +68,15 @@ export function initChatwoot(): void {
|
||||
_pending = [];
|
||||
});
|
||||
|
||||
// Hide the floating launcher bubble on mobile — it covers content on small
|
||||
// screens. The widget itself stays functional: openChatwoot() (subscription
|
||||
// page, onboarding modal) still opens it fullscreen with its own close button.
|
||||
const style = document.createElement("style");
|
||||
style.id = "chatwoot-mobile-hide";
|
||||
style.textContent =
|
||||
"@media (max-width: 767px) { .woot--bubble-holder { display: none !important; } }";
|
||||
document.head.appendChild(style);
|
||||
|
||||
const script = document.createElement("script");
|
||||
script.id = "chatwoot-sdk";
|
||||
script.src = `${BASE_URL}/packs/js/sdk.js`;
|
||||
|
||||
Reference in New Issue
Block a user