From 6740ccf2327d871cb134dd5f19b35fb9cacb4e4d Mon Sep 17 00:00:00 2001 From: zurdi Date: Mon, 8 Jul 2024 11:49:52 +0200 Subject: [PATCH] fixed platform icon --- .../src/components/common/Game/Card/Base.vue | 32 ++++++++++++++++--- .../common/Game/Dialog/SearchRom.vue | 17 ++-------- .../src/components/common/Platform/Icon.vue | 14 +++++--- frontend/src/components/common/RDialog.vue | 4 +-- frontend/src/layouts/Management/Excluded.vue | 17 ++++------ .../layouts/Management/PlatformBinding.vue | 7 ++-- .../layouts/Management/PlatformVersions.vue | 7 ++-- frontend/src/stores/config.ts | 26 +++++++++++---- frontend/src/views/Gallery/Collection.vue | 8 ++--- frontend/src/views/Gallery/Platform.vue | 3 +- 10 files changed, 80 insertions(+), 55 deletions(-) diff --git a/frontend/src/components/common/Game/Card/Base.vue b/frontend/src/components/common/Game/Card/Base.vue index b58a4d49a..e2828c8e0 100644 --- a/frontend/src/components/common/Game/Card/Base.vue +++ b/frontend/src/components/common/Game/Card/Base.vue @@ -3,6 +3,7 @@ import type { SearchRomSchema } from "@/__generated__"; import ActionBar from "@/components/common/Game/Card/ActionBar.vue"; import GameCardFlags from "@/components/common/Game/Card/Flags.vue"; import Sources from "@/components/common/Game/Card/Sources.vue"; +import PlatformIcon from "@/components/common/Platform/Icon.vue"; import storeCollections from "@/stores/collections"; import storeDownload from "@/stores/download"; import storeGalleryView from "@/stores/galleryView"; @@ -22,6 +23,7 @@ const props = withDefaults( pointerOnHover?: boolean; titleOnFooter?: boolean; showActionBar?: boolean; + showPlatformIcon?: boolean; showFav?: boolean; withBorder?: boolean; withBorderRommAccent?: boolean; @@ -34,6 +36,7 @@ const props = withDefaults( pointerOnHover: true, titleOnFooter: false, showActionBar: false, + showPlatformIcon: false, showFav: false, withBorder: false, withBorderRommAccent: false, @@ -153,7 +156,22 @@ onMounted(() => { -
+
+ + + +
+
-