Add entity color scheme and improve map hover effect
All checks were successful
Build Docker Image / build (push) Successful in 3m6s
All checks were successful
Build Docker Image / build (push) Successful in 3m6s
- Add color scheme: product/offer=orange, supplier=blue, hub=green - Remove 'location' filter (same as hub) - Quantity filter appears only after product is selected - Map hover shows 'target' ring effect (outer white ring) - Tokens in header use entity-specific colors
This commit is contained in:
@@ -143,11 +143,14 @@ const clusterNodeType = computed(() => {
|
||||
return 'logistics'
|
||||
})
|
||||
|
||||
// Import entity colors
|
||||
const { entityColors } = useCatalogSearch()
|
||||
|
||||
const mapPointColor = computed(() => {
|
||||
if (cardType.value === 'supplier') return '#3b82f6'
|
||||
if (cardType.value === 'hub') return '#10b981'
|
||||
if (cardType.value === 'offer') return '#22c55e'
|
||||
return '#f59e0b'
|
||||
if (cardType.value === 'supplier') return entityColors.supplier // blue
|
||||
if (cardType.value === 'hub') return entityColors.hub // green
|
||||
if (cardType.value === 'offer') return entityColors.offer // orange
|
||||
return entityColors.product // orange
|
||||
})
|
||||
|
||||
const headerText = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user