From 2fc4dfb8346e29507f1efd1b231eb034e02d776d Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Sat, 24 Jan 2026 11:07:31 +0700 Subject: [PATCH] Add Airbnb-style "search as I move" checkbox + hover highlight MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move filter checkbox to right side, same line as view toggle - Add hover events on selection cards to highlight map points - Update translations: "Искать при перемещении" / "Search as I move the map" --- app/components/catalog/SelectionPanel.vue | 67 ++++++++++++----------- app/components/page/CatalogPage.vue | 24 +++++++- app/pages/catalog/index.vue | 22 +++++++- i18n/locales/en/catalog.json | 2 +- i18n/locales/ru/catalog.json | 2 +- 5 files changed, 77 insertions(+), 40 deletions(-) diff --git a/app/components/catalog/SelectionPanel.vue b/app/components/catalog/SelectionPanel.vue index 919c396..756683f 100644 --- a/app/components/catalog/SelectionPanel.vue +++ b/app/components/catalog/SelectionPanel.vue @@ -14,17 +14,6 @@ :placeholder="searchPlaceholder" class="input input-sm w-full bg-white/50 border-base-300/50 text-base-content placeholder:text-base-content/50" /> - - @@ -41,39 +30,54 @@
@@ -107,14 +111,13 @@ const props = defineProps<{ loading?: boolean loadingMore?: boolean hasMore?: boolean - filterByBounds?: boolean }>() const emit = defineEmits<{ 'select': [type: string, item: Item] 'close': [] 'load-more': [] - 'update:filter-by-bounds': [value: boolean] + 'hover': [uuid: string | null] }>() const { t } = useI18n() diff --git a/app/components/page/CatalogPage.vue b/app/components/page/CatalogPage.vue index 3c05515..f161ded 100644 --- a/app/components/page/CatalogPage.vue +++ b/app/components/page/CatalogPage.vue @@ -38,8 +38,23 @@ {{ $t('common.loading') }}
- -