From 7f02b169042a4b0e07ff8a06bde99596f1c4601e Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Thu, 30 Oct 2025 14:18:19 -0400 Subject: [PATCH] simplify elevation and centralize video playing --- frontend/src/components/Details/Saves.vue | 2 - frontend/src/components/Details/States.vue | 2 - .../Settings/UserInterface/Interface.vue | 6 +- .../src/components/common/Collection/Card.vue | 249 +++++---- .../components/common/Dialog/SearchCover.vue | 42 +- .../src/components/common/Game/Card/Base.vue | 500 ++++++++---------- .../common/Game/Dialog/Asset/SelectSave.vue | 86 ++- .../common/Game/Dialog/Asset/SelectState.vue | 86 ++- .../common/Game/Dialog/MatchRom.vue | 63 +-- .../src/components/common/Platform/Card.vue | 118 ++--- frontend/src/composables/useGameAnimation.ts | 97 +++- frontend/src/console/components/GameCard.vue | 79 +-- frontend/src/styles/common.css | 5 +- frontend/src/views/Gallery/Platform.vue | 30 -- frontend/src/views/Player/EmulatorJS/Base.vue | 196 ++++--- 15 files changed, 696 insertions(+), 865 deletions(-) diff --git a/frontend/src/components/Details/Saves.vue b/frontend/src/components/Details/Saves.vue index d56df6ce6..6fc83ea49 100644 --- a/frontend/src/components/Details/Saves.vue +++ b/frontend/src/components/Details/Saves.vue @@ -118,10 +118,8 @@ function onCardClick(save: SaveSchema, event: MouseEvent) { v-bind="saveProps" class="bg-toplayer transform-scale" :class="{ - 'on-hover': isHovering, 'border-selected': selectedSaves.some((s) => s.id === save.id), }" - :elevation="isHovering ? 20 : 3" @click="(e: MouseEvent) => onCardClick(save, e)" > diff --git a/frontend/src/components/Details/States.vue b/frontend/src/components/Details/States.vue index af7b2d4e9..c3640d895 100644 --- a/frontend/src/components/Details/States.vue +++ b/frontend/src/components/Details/States.vue @@ -120,10 +120,8 @@ function onCardClick(state: StateSchema, event: MouseEvent) { v-bind="stateProps" class="bg-toplayer transform-scale" :class="{ - 'on-hover': isHovering, 'border-selected': selectedStates.some((s) => s.id === state.id), }" - :elevation="isHovering ? 20 : 3" @click="(e: MouseEvent) => onCardClick(state, e)" > diff --git a/frontend/src/components/Settings/UserInterface/Interface.vue b/frontend/src/components/Settings/UserInterface/Interface.vue index 48601e522..2ceb189bf 100644 --- a/frontend/src/components/Settings/UserInterface/Interface.vue +++ b/frontend/src/components/Settings/UserInterface/Interface.vue @@ -53,13 +53,13 @@ const enableExperimentalCacheRef = useLocalStorage( // Boxart export type BoxartStyleOption = - | "cover" + | "cover_path" | "box3d_path" | "physical_path" | "miximage_path"; const boxartStyleRef = useLocalStorage( "settings.boxartStyle", - "cover", + "cover_path", ); const homeOptions = computed(() => [ @@ -193,7 +193,7 @@ const galleryOptions = computed(() => [ ]); const boxartStyleOptions = computed(() => [ - { title: t("settings.boxart-cover"), value: "cover" }, + { title: t("settings.boxart-cover"), value: "cover_path" }, { title: t("settings.boxart-box3d"), value: "box3d_path" }, { title: t("settings.boxart-physical"), value: "physical_path" }, { title: t("settings.boxart-miximage"), value: "miximage_path" }, diff --git a/frontend/src/components/common/Collection/Card.vue b/frontend/src/components/common/Collection/Card.vue index a332c98a0..925c0d604 100644 --- a/frontend/src/components/common/Collection/Card.vue +++ b/frontend/src/components/common/Collection/Card.vue @@ -176,124 +176,53 @@ onBeforeUnmount(() => { + +
+
- - {{ collection.rom_count }} - - - - + + + {{ collection.rom_count }} + + +