fix: add match default arm and escape colour in station-map popup
This commit is contained in:
@@ -75,7 +75,7 @@ export function stationMap(results) {
|
|||||||
const bounds = [];
|
const bounds = [];
|
||||||
|
|
||||||
this.results.forEach((station) => {
|
this.results.forEach((station) => {
|
||||||
const colour = CLASSIFICATION_COLOURS[station.price_classification] ?? '#64748b';
|
const colour = escHtml(CLASSIFICATION_COLOURS[station.price_classification] ?? '#64748b');
|
||||||
const miles = (station.distance_km * 0.621371).toFixed(1);
|
const miles = (station.distance_km * 0.621371).toFixed(1);
|
||||||
const supermarketTag = station.is_supermarket
|
const supermarketTag = station.is_supermarket
|
||||||
? '<span style="display:inline-block;background:#84cc16;color:#fff;font-size:10px;padding:1px 5px;border-radius:3px;margin-left:4px;">Supermarket</span>'
|
? '<span style="display:inline-block;background:#84cc16;color:#fff;font-size:10px;padding:1px 5px;border-radius:3px;margin-left:4px;">Supermarket</span>'
|
||||||
|
|||||||
@@ -118,6 +118,7 @@
|
|||||||
'recent' => 'text-zinc-400 dark:text-zinc-500',
|
'recent' => 'text-zinc-400 dark:text-zinc-500',
|
||||||
'stale' => 'text-amber-500 dark:text-amber-400',
|
'stale' => 'text-amber-500 dark:text-amber-400',
|
||||||
'outdated' => 'text-red-500 dark:text-red-400',
|
'outdated' => 'text-red-500 dark:text-red-400',
|
||||||
|
default => 'text-zinc-400 dark:text-zinc-500',
|
||||||
} }}">
|
} }}">
|
||||||
{{ $station['price_classification_label'] }}
|
{{ $station['price_classification_label'] }}
|
||||||
·
|
·
|
||||||
|
|||||||
Reference in New Issue
Block a user