fix: add text wrap in POI list, increase search radius and exclude street_side parking
Some checks failed
TrafficCue CI / check (push) Failing after 1m34s
TrafficCue CI / build-android (push) Has been cancelled
TrafficCue CI / build (push) Has been cancelled

This commit is contained in:
2025-09-30 10:28:25 +02:00
parent 59d9667109
commit b8ddada94e
2 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@
style="flex: 1;" style="flex: 1;"
onclick={() => { onclick={() => {
view.switch("nearby-poi", { view.switch("nearby-poi", {
tags: "amenity=parking", tags: "amenity=parking,parking!=street_side",
}); });
}} }}
> >

View File

@ -18,7 +18,7 @@
return; return;
} }
view.loading = true; view.loading = true;
fetchNearbyPOI(location.lat, location.lng, tags.split(","), 500).then( fetchNearbyPOI(location.lat, location.lng, tags.split(","), 5000).then(
(results) => { (results) => {
pois = results.elements.sort((a, b) => { pois = results.elements.sort((a, b) => {
const distA = distanceTo( const distA = distanceTo(
@ -89,7 +89,7 @@
}); });
}} }}
> >
<div class="font-bold"> <div class="font-bold text-wrap">
{poi.tags.name ?? poi.tags.brand ?? m.unnamed()} {poi.tags.name ?? poi.tags.brand ?? m.unnamed()}
</div> </div>
<div class="text-sm"> <div class="text-sm">