diff --git a/app/components/page/CatalogPage.vue b/app/components/page/CatalogPage.vue index f72358d..e2d6da6 100644 --- a/app/components/page/CatalogPage.vue +++ b/app/components/page/CatalogPage.vue @@ -213,9 +213,11 @@ const props = withDefaults(defineProps<{ totalCount: 0 }) -// Map positioning - unified height for all pages with map -const mapTopClass = 'top-32' -const mapHeightClass = 'h-[calc(100vh-9rem)]' +// Map positioning - dynamic based on search bar presence +const slots = useSlots() +const hasSearchBar = computed(() => !!slots.searchBar) +const mapTopClass = computed(() => hasSearchBar.value ? 'top-44' : 'top-32') +const mapHeightClass = computed(() => hasSearchBar.value ? 'h-[calc(100vh-12rem)]' : 'h-[calc(100vh-9rem)]') const emit = defineEmits<{ 'select': [item: MapItem]