diff --git a/frontend/src/components/Gallery/AppBar/Base.vue b/frontend/src/components/Gallery/AppBar/Base.vue index 9dd29db5a..a7f7aed22 100644 --- a/frontend/src/components/Gallery/AppBar/Base.vue +++ b/frontend/src/components/Gallery/AppBar/Base.vue @@ -1,6 +1,4 @@ @@ -40,14 +35,6 @@ const { calculatedWidth } = calculateMainLayoutWidth(); - - {{ t("gallery.filtered-results", { count: fetchTotalRoms }) }} - diff --git a/frontend/src/components/Gallery/AppBar/common/FilterBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterBtn.vue index 95047e516..946fb3e5f 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterBtn.vue @@ -2,10 +2,13 @@ import { storeToRefs } from "pinia"; import { useI18n } from "vue-i18n"; import storeGalleryFilter from "@/stores/galleryFilter"; +import storeRoms from "@/stores/roms"; const { t } = useI18n(); const galleryFilterStore = storeGalleryFilter(); const { activeFilterDrawer } = storeToRefs(galleryFilterStore); +const romsStore = storeRoms(); +const { fetchTotalRoms } = storeToRefs(romsStore); @@ -18,11 +21,10 @@ const { activeFilterDrawer } = storeToRefs(galleryFilterStore); > + > + + {{ fetchTotalRoms }} + mdi-filter-variant + + diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue index a06f8e08a..b6ed6f931 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue @@ -41,7 +41,6 @@ const { xs, smAndDown } = useDisplay(); const router = useRouter(); const galleryFilterStore = storeGalleryFilter(); const romsStore = storeRoms(); -const { fetchTotalRoms } = storeToRefs(romsStore); const platformsStore = storePlatforms(); const { searchTerm, @@ -557,7 +556,7 @@ onMounted(async () => { variant="outlined" density="comfortable" :items="filter.items.value" - class="flex-grow-1" + class="grow" @update:model-value=" nextTick(() => emitter?.emit('filterRoms', null)) " @@ -568,7 +567,7 @@ onMounted(async () => { mandatory variant="outlined" density="compact" - class="flex-shrink-0" + class="shrink-0" @update:model-value=" (value) => { filter.setLogic(value); @@ -613,7 +612,7 @@ onMounted(async () => { { > {{ t("platform.reset-filters") }} - - {{ t("gallery.filtered-results", { count: fetchTotalRoms }) }} - diff --git a/frontend/src/locales/en_US/gallery.json b/frontend/src/locales/en_US/gallery.json index 02c79aad7..987687a18 100644 --- a/frontend/src/locales/en_US/gallery.json +++ b/frontend/src/locales/en_US/gallery.json @@ -1,5 +1,4 @@ { "all-loaded": "All games have been loaded", - "load-more": "Load more", - "filtered-results": "{count} results" + "load-more": "Load more" }