Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

feat(frontend): hide the Chatbase widget while the creation modal is open

Nevo Davidb267fbeb8efb
diff --git a/apps/frontend/src/app/global.scss b/apps/frontend/src/app/global.scss
index 1b7000c5a..a900a44d4 100644
--- a/apps/frontend/src/app/global.scss
+++ b/apps/frontend/src/app/global.scss
@@ -524,6 +524,12 @@ div div .set-font-family {
display: none !important;
}
+.hideChatbase #chatbase-bubble-button,
+.hideChatbase #chatbase-bubble-window,
+.hideChatbase #chatbase-message-bubbles {
+ display: none !important;
+}
+
html[dir='rtl'] .rbox {
direction: rtl !important;
}
diff --git a/apps/frontend/src/components/new-launch/add.edit.modal.tsx b/apps/frontend/src/components/new-launch/add.edit.modal.tsx
index a974e4bf5..7de3d565d 100644
--- a/apps/frontend/src/components/new-launch/add.edit.modal.tsx
+++ b/apps/frontend/src/components/new-launch/add.edit.modal.tsx
@@ -52,6 +52,13 @@ export const AddEditModal: FC<AddEditModalProps> = (props) => {
setIsCreateSet(!!props.addEditSets);
}, []);
+ useEffect(() => {
+ document.querySelector('body')?.classList.add('hideChatbase');
+ return () => {
+ document.querySelector('body')?.classList.remove('hideChatbase');
+ };
+ }, []);
+
if (!integrations.length) {
return null;
}