mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 10:08:40 +01:00
disable view transition sin some contexts
This commit is contained in:
@@ -48,6 +48,7 @@ const gridContinuePlayingRoms = isNull(
|
||||
transformScale
|
||||
showActionBar
|
||||
showPlatformIcon
|
||||
disableViewTransition
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -408,6 +408,7 @@ onBeforeUnmount(() => {
|
||||
transformScale
|
||||
titleOnHover
|
||||
pointerOnHover
|
||||
disableViewTransition
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
Reference in New Issue
Block a user