Add missing global attribute to style jsx fixing Chat position (#5595)

This commit is contained in:
Piotr Monwid-Olechnowicz 2024-09-09 17:05:17 +03:00 committed by GitHub
parent 76cba8278c
commit b4244e6e58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,9 @@ export function Page(props: { children: ReactNode; className?: string }) {
<div className={cn('flex h-full flex-col', props.className)}>{props.children}</div>
{mounted && <CookiesConsent />}
{/* position Crisp button below the cookies banner */}
<style jsx>{' .crisp-client { z-index: 40 !important; '}</style>
<style jsx global>
{' .crisp-client { z-index: 40 !important; '}
</style>
</>
);
}