From 08df8e325532c873758730a8d80b70abbbfa9991 Mon Sep 17 00:00:00 2001 From: zurdi Date: Thu, 27 Nov 2025 16:55:31 +0000 Subject: [PATCH] Refactor filter buttons in FilterDrawer for improved styling and functionality; add FilterPlatformBtn component. --- .../AppBar/common/FilterDrawer/Base.vue | 81 ++----------------- .../FilterDrawer/FilterDuplicatesBtn.vue | 6 +- .../FilterDrawer/FilterFavoritesBtn.vue | 8 +- .../FilterDrawer/FilterMatchStateBtn.vue | 8 +- .../common/FilterDrawer/FilterMissingBtn.vue | 8 +- .../common/FilterDrawer/FilterPlatformBtn.vue | 81 +++++++++++++++++++ .../FilterDrawer/FilterPlayablesBtn.vue | 6 +- .../common/FilterDrawer/FilterRaBtn.vue | 6 +- .../common/FilterDrawer/FilterVerifiedBtn.vue | 8 +- 9 files changed, 117 insertions(+), 95 deletions(-) create mode 100644 frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterPlatformBtn.vue diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue index cd33af854..44a7c8fba 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue @@ -11,11 +11,10 @@ import FilterDuplicatesBtn from "@/components/Gallery/AppBar/common/FilterDrawer import FilterFavoritesBtn from "@/components/Gallery/AppBar/common/FilterDrawer/FilterFavoritesBtn.vue"; import FilterMatchStateBtn from "@/components/Gallery/AppBar/common/FilterDrawer/FilterMatchStateBtn.vue"; import FilterMissingBtn from "@/components/Gallery/AppBar/common/FilterDrawer/FilterMissingBtn.vue"; +import FilterPlatformBtn from "@/components/Gallery/AppBar/common/FilterDrawer/FilterPlatformBtn.vue"; import FilterPlayablesBtn from "@/components/Gallery/AppBar/common/FilterDrawer/FilterPlayablesBtn.vue"; import FilterRaBtn from "@/components/Gallery/AppBar/common/FilterDrawer/FilterRaBtn.vue"; import FilterVerifiedBtn from "@/components/Gallery/AppBar/common/FilterDrawer/FilterVerifiedBtn.vue"; -import MissingFromFSIcon from "@/components/common/MissingFromFSIcon.vue"; -import PlatformIcon from "@/components/common/Platform/PlatformIcon.vue"; import storeGalleryFilter from "@/stores/galleryFilter"; import storePlatforms from "@/stores/platforms"; import storeRoms from "@/stores/roms"; @@ -64,7 +63,6 @@ const { selectedStatus, filterStatuses, selectedPlatform, - filterPlatforms, selectedRegion, filterRegions, selectedLanguage, @@ -324,11 +322,9 @@ onMounted(async () => { class="bg-surface rounded mt-4 mb-2 pa-1 unset-height" > - + + + { /> - - - - - + + -
@@ -64,7 +64,9 @@ function setState(state: string | null) { :disabled="fetchTotalRoms > 10000" @update:model-value="setState" > - All + mdi-cancel +