tweak style of game cover on details page

This commit is contained in:
Georges-Antoine Assi
2025-11-18 23:00:44 -05:00
parent 4f6442a6ad
commit f5348e37a9
2 changed files with 15 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import { useI18n } from "vue-i18n";
import AdminMenu from "@/components/common/Game/AdminMenu.vue";
import CopyRomDownloadLinkDialog from "@/components/common/Game/Dialog/CopyDownloadLink.vue";
import PlayBtn from "@/components/common/Game/PlayBtn.vue";
import { useGameAnimation } from "@/composables/useGameAnimation";
import romApi from "@/services/api/rom";
import storeAuth from "@/stores/auth";
import storeDownload from "@/stores/download";
@@ -23,6 +24,10 @@ const isNDSRom = computed(() => {
return isNintendoDSRom(props.rom);
});
const { boxartStyle } = useGameAnimation({
rom: props.rom,
});
async function copyDownloadLink(rom: DetailedRom) {
const downloadLink = getDownloadLink({
rom,
@@ -44,7 +49,15 @@ async function copyDownloadLink(rom: DetailedRom) {
<template>
<div>
<v-btn-group divided density="compact" class="d-flex flex-row">
<v-btn-group
divided
density="compact"
class="d-flex flex-row"
:class="{
'mt-2':
boxartStyle !== 'physical_path' || !rom.ss_metadata?.physical_path,
}"
>
<v-btn
:disabled="downloadStore.value.includes(rom.id) || rom.missing_from_fs"
class="flex-grow-1"

View File

@@ -269,6 +269,7 @@ onBeforeUnmount(() => {
}
: {}),
}"
:variant="boxartStyle === 'cover_path' ? 'elevated' : 'flat'"
class="game-card bg-transparent"
:class="{
'transform-scale':