diff --git a/src/components/elements/MapMarkers.vue b/src/components/elements/MapMarkers.vue index fde2d657..84c5a3ef 100644 --- a/src/components/elements/MapMarkers.vue +++ b/src/components/elements/MapMarkers.vue @@ -55,11 +55,12 @@ const isMobile = smaller(DESKTOP_LAYOUT) const { selectedUuid: initialUuid } = useLocations() const { selectedUuid } = storeToRefs(useLocations()) +// Needed when bg color is a gradient function extractColorFromBg(bg: string) { const regex = /#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})/g // TODO: Find a way to know if the arrow is on the left or right side and use the correct color const colors = bg.match(regex) || [] - return colors + return colors[colors.length - 1] } @@ -118,7 +119,7 @@ function extractColorFromBg(bg: string) { - +