Move filterByBounds to map, show only when panel is open
All checks were successful
Build Docker Image / build (push) Successful in 3m46s

This commit is contained in:
Ruslan Bakiev
2026-01-26 15:00:30 +07:00
parent 5ca995ebcc
commit 2d83110ef1
3 changed files with 20 additions and 14 deletions

View File

@@ -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"
/>
<label class="flex items-center gap-2 cursor-pointer text-white/70 text-sm hover:text-white transition-colors">
<input
type="checkbox"
:checked="filterByBounds"
class="checkbox checkbox-xs checkbox-primary"
@change="emit('update:filter-by-bounds', ($event.target as HTMLInputElement).checked)"
/>
<span>{{ $t('catalog.search.filterByMap') }}</span>
</label>
</div>
<!-- Content (scrollable) -->
@@ -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]
}>()