From 61540b5ceb63f22122e11fcef1d6627054cea451 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 9 Mar 2026 00:42:07 +0000 Subject: [PATCH 2/5] feat: click to zoom game cover in console Game view Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com> --- frontend/src/console/views/Game.vue | 64 ++++++++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/frontend/src/console/views/Game.vue b/frontend/src/console/views/Game.vue index 4c20761c4..aee96e3d2 100644 --- a/frontend/src/console/views/Game.vue +++ b/frontend/src/console/views/Game.vue @@ -54,6 +54,7 @@ const selectedZone = ref("play"); const selectedStateIndex = ref(0); const showDescription = ref(false); const showDetails = ref(false); +const showCoverLightbox = ref(false); const showLightbox = ref(false); const selectedShot = ref(0); const screenshotsRef = useTemplateRef("screenshots-ref"); @@ -155,6 +156,15 @@ function goBackToPlatform() { const { subscribe } = useInputScope(); function handleAction(action: InputAction): boolean { + // Cover lightbox handling + if (showCoverLightbox.value) { + if (action === "back") { + showCoverLightbox.value = false; + return true; + } + return false; + } + // Lightbox handling if (showLightbox.value) { if (action === "moveRight") { @@ -553,7 +563,8 @@ onUnmounted(() => { :src="largeCover || fallbackCoverImage" :lazy-src="smallCover || fallbackCoverImage" :alt="`${rom.name} cover`" - class="w-[220px] md:w-[260px] h-auto rounded-2xl shadow-[0_10px_40px_rgba(0,0,0,0.8),_0_0_0_1px_rgba(255,255,255,0.1)]" + class="w-[220px] md:w-[260px] h-auto rounded-2xl shadow-[0_10px_40px_rgba(0,0,0,0.8),_0_0_0_1px_rgba(255,255,255,0.1)] cursor-pointer" + @click="showCoverLightbox = true" /> @@ -1012,6 +1023,57 @@ onUnmounted(() => { @close="showLightbox = false" /> + + + + + Date: Mon, 9 Mar 2026 00:52:48 +0000 Subject: [PATCH 3/5] feat: move click-to-zoom to common game card Base.vue Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com> --- .../src/components/common/Game/Card/Base.vue | 44 +++++++++++++ frontend/src/console/views/Game.vue | 64 +------------------ 2 files changed, 45 insertions(+), 63 deletions(-) diff --git a/frontend/src/components/common/Game/Card/Base.vue b/frontend/src/components/common/Game/Card/Base.vue index a7307f70e..2655bec39 100644 --- a/frontend/src/components/common/Game/Card/Base.vue +++ b/frontend/src/components/common/Game/Card/Base.vue @@ -10,6 +10,7 @@ import { inject, useTemplateRef, } from "vue"; +import RDialog from "@/components/common/RDialog.vue"; import { useDisplay } from "vuetify"; import type { VImg } from "vuetify/lib/components/VImg/VImg.js"; import type { BoxartStyleOption } from "@/components/Settings/UserInterface/Interface.vue"; @@ -83,6 +84,7 @@ const { smAndDown } = useDisplay(); const romsStore = storeRoms(); const activeMenu = ref(false); const gameIsHovering = ref(false); +const showCoverZoom = ref(false); const emitter = inject>("emitter"); emitter?.on("playGame", handlePlayGame); @@ -293,6 +295,16 @@ onBeforeUnmount(() => { @touchstart="handleTouchStart" @touchend="handleTouchEnd" > + + +