From b4a9588e40da8ede35d8122a7bf1db4ed75cfca4 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Tue, 26 Aug 2025 09:37:30 -0400 Subject: [PATCH] only modals left --- frontend/src/console/views/Game.vue | 49 +++++++++-------------------- 1 file changed, 14 insertions(+), 35 deletions(-) diff --git a/frontend/src/console/views/Game.vue b/frontend/src/console/views/Game.vue index 23bab2a32..d0cde1ac2 100644 --- a/frontend/src/console/views/Game.vue +++ b/frontend/src/console/views/Game.vue @@ -14,6 +14,7 @@ import type { InputAction } from "@/console/input/actions"; import { ROUTES } from "@/plugins/router"; import { getSupportedEJSCores } from "@/utils"; import storeRoms from "@/stores/roms"; +import { getMissingCoverImage, getUnmatchedCoverImage } from "@/utils/covers"; type FocusZone = | "play" @@ -61,13 +62,10 @@ const screenshotUrls = computed(() => { return rom.value?.merged_screenshots || []; }); -// Cover URL with fallbacks for background/poster (prefer local resources first) -const coverUrl = computed( - () => - rom.value?.path_cover_large || - rom.value?.path_cover_small || - rom.value?.url_cover || - "", +const fallbackCoverImage = computed(() => + rom.value?.igdb_id || rom.value?.moby_id || rom.value?.ss_id + ? getMissingCoverImage(rom.value?.name || rom.value?.slug || "") + : getUnmatchedCoverImage(rom.value?.name || rom.value?.slug || ""), ); function openDescription() { @@ -455,7 +453,7 @@ onUnmounted(() => { v-else-if="playerState === 'unsupported'" class="m-auto text-red-400 p-4" > - This platform is not supported in the web player yet. + This platform is not yet supported in the web player @@ -468,8 +466,8 @@ onUnmounted(() => {
@@ -486,21 +484,12 @@ onUnmounted(() => { >
- -
-
🎮
-
- {{ rom?.name?.charAt(0) || "?" }} -
-
@@ -671,9 +660,10 @@ onUnmounted(() => { @keydown.enter.prevent="openLightbox(idx)" >