mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-11 00:05:36 +02:00
🐛 fix: Fix Portal on Safari
This commit is contained in:
@@ -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)]"
|
||||
)} />
|
||||
|
||||
@@ -63,9 +63,9 @@ export default component$(() => {
|
||||
|
||||
|
||||
return (
|
||||
<button class="relative rounded-full size-[100px] outline-none focus:ring-2 focus:ring-primary-500 hover:ring-2 hover:ring-primary-500 transition-all duration-200">
|
||||
<canvas class="absolute w-full h-full left-0 top-0 bottom-0 right-0" height={100} width={100} ref={buttonRef} />
|
||||
<canvas class="relative w-full h-full z-[5] left-0 top-0 bottom-0 right-0" height={100} width={100} ref={iconRef} />
|
||||
<button class="relative inset-0 rounded-full size-[100px] outline-none focus:ring-2 focus:ring-primary-500 hover:ring-2 hover:ring-primary-500 transition-all duration-200">
|
||||
<canvas class="absolute w-full h-full inset-0" height={100} width={100} ref={buttonRef} />
|
||||
<canvas class="relative w-full h-full z-[5] inset-0" height={100} width={100} ref={iconRef} />
|
||||
</button>
|
||||
)
|
||||
})
|
||||
Reference in New Issue
Block a user