From 2d83110ef141bda65686efad41bfab8176d3f8f4 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev Date: Mon, 26 Jan 2026 15:00:30 +0700 Subject: [PATCH] Move filterByBounds to map, show only when panel is open --- app/components/catalog/SelectionPanel.vue | 13 +------------ app/components/page/CatalogPage.vue | 17 +++++++++++++++++ app/pages/catalog/index.vue | 4 ++-- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/app/components/catalog/SelectionPanel.vue b/app/components/catalog/SelectionPanel.vue index 08560b1..a30de0e 100644 --- a/app/components/catalog/SelectionPanel.vue +++ b/app/components/catalog/SelectionPanel.vue @@ -12,17 +12,8 @@ v-model="searchQuery" type="text" :placeholder="searchPlaceholder" - class="input input-sm w-full bg-white/10 border-white/20 text-white placeholder:text-white/50 mb-2" + class="input input-sm w-full bg-white/10 border-white/20 text-white placeholder:text-white/50" /> - @@ -116,13 +107,11 @@ const props = defineProps<{ loading?: boolean loadingMore?: boolean hasMore?: boolean - filterByBounds?: boolean }>() const emit = defineEmits<{ 'select': [type: string, item: Item] 'close': [] - 'update:filter-by-bounds': [value: boolean] 'load-more': [] 'hover': [uuid: string | null] }>() diff --git a/app/components/page/CatalogPage.vue b/app/components/page/CatalogPage.vue index 3f8017b..c603b31 100644 --- a/app/components/page/CatalogPage.vue +++ b/app/components/page/CatalogPage.vue @@ -48,6 +48,20 @@ {{ $t('catalog.list') }} + + +