1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-13 20:39:58 +00:00

fix: prevent horizontal body overflow on firefox

This commit is contained in:
Daniel Roe 2022-11-29 13:38:01 +00:00
parent cf2d22cb5e
commit 5c5143d2c9
No known key found for this signature in database
GPG key ID: 22D5008E4F5D9B55

View file

@ -6,6 +6,9 @@ const isPreview = window.location.hostname.includes('deploy-preview')
export function usePageHeader() {
useHead({
titleTemplate: title => `${title ? `${title} | ` : ''}${APP_NAME}${isDev ? ' (dev)' : isPreview ? ' (preview)' : ''}`,
bodyAttrs: {
class: 'overflow-x-hidden',
},
link: [
{ rel: 'icon', type: 'image/svg+png', href: isDev || isPreview ? '/favicon-dev.png' : '/favicon.png' },
],