fix: add match default arm and escape colour in station-map popup

This commit is contained in:
Ovidiu U
2026-04-06 09:49:37 +01:00
parent 4f695ca37c
commit f5b39e8dc4
2 changed files with 2 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ export function stationMap(results) {
const bounds = [];
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 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>'