Fix catalog UI issues
All checks were successful
Build Docker Image / build (push) Successful in 3m31s
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:
@@ -265,16 +265,20 @@ const onBoundsChange = (bounds: MapBounds) => {
|
||||
}
|
||||
|
||||
// Handle selection from map
|
||||
const onMapSelect = (uuid: string) => {
|
||||
const onMapSelect = (uuid: string, properties?: Record<string, any>) => {
|
||||
const item = props.items.find(i => i.uuid === uuid)
|
||||
if (item) {
|
||||
selectedMapItem.value = item
|
||||
emit('select', item)
|
||||
} else if (props.useServerClustering) {
|
||||
// For server clustering, item might not be in props.items
|
||||
// Create minimal item with just uuid
|
||||
selectedMapItem.value = { uuid }
|
||||
emit('select', { uuid })
|
||||
// For server clustering, include properties from cluster data
|
||||
const mapItem: MapItem = {
|
||||
uuid,
|
||||
name: properties?.name,
|
||||
...properties
|
||||
}
|
||||
selectedMapItem.value = mapItem
|
||||
emit('select', mapItem)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user