From 07152570483531db79943a734d232ba97e7844b8 Mon Sep 17 00:00:00 2001 From: Varun Raj Date: Sun, 26 Jan 2025 16:46:22 +0530 Subject: [PATCH] feat: open street man integrated Signed-off-by: Varun Raj --- .../TagMissingLocationDialog.tsx | 16 ++++++++-------- .../TagMissingLocationOSMSearchAndAdd.tsx | 9 +++------ .../TagMissingLocationSearchAndAdd.tsx | 13 ++++++------- 3 files changed, 17 insertions(+), 21 deletions(-) diff --git a/src/components/assets/missing-location/TagMissingLocationDialog/TagMissingLocationDialog.tsx b/src/components/assets/missing-location/TagMissingLocationDialog/TagMissingLocationDialog.tsx index a57f729..731643e 100644 --- a/src/components/assets/missing-location/TagMissingLocationDialog/TagMissingLocationDialog.tsx +++ b/src/components/assets/missing-location/TagMissingLocationDialog/TagMissingLocationDialog.tsx @@ -46,19 +46,19 @@ export default function TagMissingLocationDialog({ Tagging a location will add the location to the selected assets. - + - Immich Search - OSM Search - Lat & Long - Map + Open Street Map + Immich Geo + Lat & Long + Map - - - + + + diff --git a/src/components/assets/missing-location/TagMissingLocationDialog/TagMissingLocationOSMSearchAndAdd.tsx b/src/components/assets/missing-location/TagMissingLocationDialog/TagMissingLocationOSMSearchAndAdd.tsx index e064ac2..63a0b5b 100644 --- a/src/components/assets/missing-location/TagMissingLocationDialog/TagMissingLocationOSMSearchAndAdd.tsx +++ b/src/components/assets/missing-location/TagMissingLocationDialog/TagMissingLocationOSMSearchAndAdd.tsx @@ -132,15 +132,12 @@ export default function TagMissingLocationOSMSearchAndAdd( return (
-
- { handleSearch(e.target.value); }} /> -
{loading && } {!loading && searchedPlaces && searchedPlaces.length === 0 && ( @@ -161,7 +158,7 @@ export default function TagMissingLocationOSMSearchAndAdd( )} >
-

{place.name}

+

{place.name}

{place.latitude}, {place.longitude} @@ -176,11 +173,11 @@ export default function TagMissingLocationOSMSearchAndAdd(
diff --git a/src/components/assets/missing-location/TagMissingLocationDialog/TagMissingLocationSearchAndAdd.tsx b/src/components/assets/missing-location/TagMissingLocationDialog/TagMissingLocationSearchAndAdd.tsx index 949bf79..3619fee 100644 --- a/src/components/assets/missing-location/TagMissingLocationDialog/TagMissingLocationSearchAndAdd.tsx +++ b/src/components/assets/missing-location/TagMissingLocationDialog/TagMissingLocationSearchAndAdd.tsx @@ -96,7 +96,6 @@ export default function TagMissingLocationSearchAndAdd( return (
- { @@ -116,21 +115,21 @@ export default function TagMissingLocationSearchAndAdd( key={place.name} onClick={() => handleSelect(place)} className={cn( - "hover:bg-zinc-900 flex justify-between items-center px-2 py-1 rounded-lg cursor-pointer", + "hover:bg-zinc-200 dark:hover:bg-zinc-800 flex justify-between items-center px-2 py-1 rounded-lg cursor-pointer", { - "bg-zinc-900": + "bg-zinc-900 dark:bg-zinc-200": selectedPlace && selectedPlace.name === place.name, } )} >

{place.name}

- + {place.latitude}, {place.longitude}
{selectedPlace && selectedPlace.name === place.name && ( - + )}
))} @@ -139,11 +138,11 @@ export default function TagMissingLocationSearchAndAdd(