Hide featurebase on public form pages

This commit is contained in:
Julien Nahum 2024-03-12 16:13:00 +01:00
parent 87789b3f5e
commit 3aa80b2b75
2 changed files with 9 additions and 1 deletions

View File

@ -116,6 +116,7 @@ await loadForm(true)
onMounted(() => {
crisp.hideChat()
document.body.classList.add('public-page')
if (form.value) {
handleDarkMode(form.value?.dark_mode)
handleTransparentMode(form.value?.transparent_background)
@ -135,6 +136,7 @@ onMounted(() => {
})
onBeforeRouteLeave((to, from) => {
document.body.classList.remove('public-page')
crisp.showChat()
disableDarkMode()
})

View File

@ -55,4 +55,10 @@ body.dark * {
p {
@apply text-gray-400 dark:text-gray-500;
}
}
}
.public-page {
.fb-feedback-widget-feedback-button-container {
display: none;
}
}