disable view transition sin some contexts

This commit is contained in:
Georges-Antoine Assi
2025-03-06 15:57:27 -05:00
parent 4594feb967
commit 2d95cbc6f1
4 changed files with 12 additions and 2 deletions

View File

@@ -48,6 +48,7 @@ const gridContinuePlayingRoms = isNull(
transformScale
showActionBar
showPlatformIcon
disableViewTransition
/>
</v-col>
</v-row>

View File

@@ -31,6 +31,7 @@ const props = withDefaults(
showFav?: boolean;
withBorderPrimary?: boolean;
withLink?: boolean;
disableViewTransition?: boolean;
src?: string;
}>(),
{
@@ -46,6 +47,7 @@ const props = withDefaults(
showPlatformIcon: false,
showFav: false,
withBorderPrimary: false,
disableViewTransition: false,
withLink: false,
src: "",
},
@@ -85,7 +87,9 @@ const fallbackCoverImage = computed(() =>
<template>
<v-hover v-slot="{ isHovering, props: hoverProps }">
<v-card
:style="{ viewTransitionName: `card-${rom.id}` }"
:style="
disableViewTransition ? {} : { viewTransitionName: `card-${rom.id}` }
"
:minWidth="width"
:maxWidth="width"
:minHeight="height"

View File

@@ -317,7 +317,11 @@ function closeDialog() {
no-gutters
>
<v-col style="max-width: 240px">
<game-card :rom="rom" :src="imagePreviewUrl">
<game-card
:rom="rom"
:src="imagePreviewUrl"
disableViewTransition
>
<template #append-inner-right>
<v-btn-group divided density="compact" rounded="0">
<v-btn

View File

@@ -408,6 +408,7 @@ onBeforeUnmount(() => {
transformScale
titleOnHover
pointerOnHover
disableViewTransition
/>
</v-col>
</v-row>