🐛 fix: Fix Portal on Safari

This commit is contained in:
Wanjohi
2024-09-15 01:27:06 +03:00
parent 5b713521a1
commit 7663e17644
2 changed files with 4 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ export const Card = component$(({ titleWidth, titleHeight, game, size, ...props
'--after-height': `${titleHeight}%`
}}
class={cn(
"w-full mx-auto h-full relative flex overflow-hidden",
"w-full rounded-xl mx-auto inset-0 h-full relative flex overflow-hidden",
"before:absolute before:inset-0 before:w-full before:animate-zoom-out before:h-full before:bg-cover before:bg-center before:bg-no-repeat before:bg-[url:var(--before-url)]",
"after:absolute after:w-[var(--after-width)] after:bg-contain after:h-[var(--after-height)] after:left-0 after:m-auto after:right-0 after:bottom-0 after:top-0 after:bg-center after:bg-no-repeat after:bg-[url:var(--title-url)]"
)} />