Fix catalog UI issues
All checks were successful
Build Docker Image / build (push) Successful in 3m31s

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
This commit is contained in:
Ruslan Bakiev
2026-01-24 09:47:41 +07:00
parent 3140226bc3
commit 2a607d0d2d
5 changed files with 68 additions and 29 deletions

View File

@@ -62,7 +62,7 @@ const props = withDefaults(defineProps<{
})
const emit = defineEmits<{
'select-item': [uuid: string]
'select-item': [uuid: string, properties?: Record<string, any>]
'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' })