Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(maps): hover labels on the GL maps use the app font, not the map's Arial

Mauricea805b4b8820e
diff --git a/client/src/components/Map/mapHoverLabel.ts b/client/src/components/Map/mapHoverLabel.ts
index bc4f6aa96..c049c57d6 100644
--- a/client/src/components/Map/mapHoverLabel.ts
+++ b/client/src/components/Map/mapHoverLabel.ts
@@ -46,6 +46,8 @@ export function mapHoverLabel(map: LabelHost, testId = 'map-hover-label'): MapHo
element.dataset.testid = testId;
// The pointer's pixel on the map, not a side of the text: placed from the corner either way.
element.style.inset = '0px auto auto 0px';
+ // The map's own stylesheet sets Helvetica/Arial on its container; the label speaks in the app's face.
+ element.style.fontFamily = 'var(--font-system)';
container.appendChild(element);
return element;
};