From 2a607d0d2d0122b22083164f46499fa8f8a4ed25 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:47:41 +0700 Subject: [PATCH] Fix catalog UI issues 1. Fix navbar height - prevent tag wrapping with overflow-hidden 2. Fix translation keys for mode labels and search form labels 3. Fix SelectionPanel - white glass header/search, no top gap 4. Map click fills active selector - emit full properties from map --- app/components/catalog/CatalogMap.vue | 7 ++-- app/components/catalog/SelectionPanel.vue | 24 ++++++------- app/components/navigation/MainNavigation.vue | 14 ++++---- app/components/page/CatalogPage.vue | 14 +++++--- app/pages/catalog/index.vue | 38 +++++++++++++++++++- 5 files changed, 68 insertions(+), 29 deletions(-) diff --git a/app/components/catalog/CatalogMap.vue b/app/components/catalog/CatalogMap.vue index e7eac1f..42f7977 100644 --- a/app/components/catalog/CatalogMap.vue +++ b/app/components/catalog/CatalogMap.vue @@ -62,7 +62,7 @@ const props = withDefaults(defineProps<{ }) const emit = defineEmits<{ - 'select-item': [uuid: string] + 'select-item': [uuid: string, properties?: Record] 'bounds-change': [bounds: MapBounds] }>() @@ -428,11 +428,12 @@ const initServerClusteringLayers = async (map: MapboxMapType) => { }) }) - // Click on individual point + // Click on individual point - emit full properties map.on('click', 'server-points', (e) => { const features = map.queryRenderedFeatures(e.point, { layers: ['server-points'] }) if (!features.length) return - emit('select-item', features[0].properties?.id) + const props = features[0].properties || {} + emit('select-item', props.id, props) }) map.on('mouseenter', 'server-clusters', () => { map.getCanvas().style.cursor = 'pointer' }) diff --git a/app/components/catalog/SelectionPanel.vue b/app/components/catalog/SelectionPanel.vue index 4d93f7e..3c9f5f6 100644 --- a/app/components/catalog/SelectionPanel.vue +++ b/app/components/catalog/SelectionPanel.vue @@ -1,25 +1,23 @@