diff --git a/frontend/src/components/Gallery/AppBar/Search/Base.vue b/frontend/src/components/Gallery/AppBar/Search/Base.vue new file mode 100644 index 000000000..aa7a27f49 --- /dev/null +++ b/frontend/src/components/Gallery/AppBar/Search/Base.vue @@ -0,0 +1,46 @@ + + + + + diff --git a/frontend/src/components/Gallery/AppBar/Search/PlatformSelector.vue b/frontend/src/components/Gallery/AppBar/Search/PlatformSelector.vue new file mode 100644 index 000000000..c3a2ecaec --- /dev/null +++ b/frontend/src/components/Gallery/AppBar/Search/PlatformSelector.vue @@ -0,0 +1,130 @@ + + + diff --git a/frontend/src/components/Gallery/AppBar/Search/SearchBtn.vue b/frontend/src/components/Gallery/AppBar/Search/SearchBtn.vue new file mode 100644 index 000000000..4fbb31201 --- /dev/null +++ b/frontend/src/components/Gallery/AppBar/Search/SearchBtn.vue @@ -0,0 +1,85 @@ + + + diff --git a/frontend/src/components/Gallery/AppBar/Search/SearchTextField.vue b/frontend/src/components/Gallery/AppBar/Search/SearchTextField.vue new file mode 100644 index 000000000..35c7cf6f9 --- /dev/null +++ b/frontend/src/components/Gallery/AppBar/Search/SearchTextField.vue @@ -0,0 +1,121 @@ + + + diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue index 9b6a7e43c..be0775ea5 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue @@ -4,17 +4,21 @@ import FilterMatchedBtn from "@/components/Gallery/AppBar/common/FilterDrawer/Fi import FilterFavouritesBtn from "@/components/Gallery/AppBar/common/FilterDrawer/FilterFavouritesBtn.vue"; import FilterDuplicatesBtn from "@/components/Gallery/AppBar/common/FilterDrawer/FilterDuplicatesBtn.vue"; import FilterTextField from "@/components/Gallery/AppBar/common/FilterTextField.vue"; +import PlatformSelector from "@/components/Gallery/AppBar/Search/PlatformSelector.vue"; +import SearchTextField from "@/components/Gallery/AppBar/Search/SearchTextField.vue"; +import SearchBtn from "@/components/Gallery/AppBar/Search/SearchBtn.vue"; import storeGalleryFilter from "@/stores/galleryFilter"; import type { Events } from "@/types/emitter"; import type { Emitter } from "mitt"; import { storeToRefs } from "pinia"; -import { inject, nextTick } from "vue"; +import { inject, nextTick, ref } from "vue"; import { useDisplay } from "vuetify"; import { useI18n } from "vue-i18n"; // Props const { t } = useI18n(); const { xs } = useDisplay(); +const viewportWidth = ref(window.innerWidth); const emitter = inject>("emitter"); const galleryFilterStore = storeGalleryFilter(); const { @@ -83,15 +87,34 @@ function resetFilters() {