From 51f2905fcc258b817570a3c33a9a0d3e0fd561b6 Mon Sep 17 00:00:00 2001 From: Mees Frensel <33722705+meesfrensel@users.noreply.github.com> Date: Mon, 22 Jun 2026 16:58:07 +0200 Subject: [PATCH] fix(web): remove map's fullscreen button (#29192) --- i18n/en.json | 2 +- .../lib/components/asset-viewer/DetailPanel.svelte | 11 +++++------ .../lib/components/shared-components/map/Map.svelte | 8 +++----- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index 648138a878..2b124c276e 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -1548,7 +1548,7 @@ "map_location_picker_page_use_location": "Use this location", "map_location_service_disabled_content": "Location service needs to be enabled to display assets from your current location. Do you want to enable it now?", "map_location_service_disabled_title": "Location Service disabled", - "map_marker_for_images": "Map marker for images taken in {city}, {country}", + "map_marker_for_image": "Map marker for image taken in {city}, {country}", "map_marker_with_image": "Map marker with image", "map_no_location_permission_content": "Location permission is needed to display assets from your current location. Do you want to allow it now?", "map_no_location_permission_title": "Location Permission denied", diff --git a/web/src/lib/components/asset-viewer/DetailPanel.svelte b/web/src/lib/components/asset-viewer/DetailPanel.svelte index 6766292766..98b64d5aa0 100644 --- a/web/src/lib/components/asset-viewer/DetailPanel.svelte +++ b/web/src/lib/components/asset-viewer/DetailPanel.svelte @@ -23,7 +23,7 @@ type AlbumResponseDto, type AssetResponseDto, } from '@immich/sdk'; - import { Icon, IconButton, LoadingSpinner, Text } from '@immich/ui'; + import { Icon, IconButton, Link, LoadingSpinner, Text } from '@immich/ui'; import { mdiCamera, mdiCameraIris, mdiClose, mdiImageOutline, mdiInformationOutline } from '@mdi/js'; import { onDestroy } from 'svelte'; import { t } from 'svelte-i18n'; @@ -310,14 +310,13 @@ {#snippet popup({ marker })} {@const { lat, lon } = marker}
-

{lat.toPrecision(6)}, {lon.toPrecision(6)}

- {lat.toPrecision(6)}, {lon.toPrecision(6)} + {$t('open_in_openstreetmap')} - +
{/snippet} diff --git a/web/src/lib/components/shared-components/map/Map.svelte b/web/src/lib/components/shared-components/map/Map.svelte index 47e9490138..9172b7bee4 100644 --- a/web/src/lib/components/shared-components/map/Map.svelte +++ b/web/src/lib/components/shared-components/map/Map.svelte @@ -38,7 +38,6 @@ Control, ControlButton, ControlGroup, - FullscreenControl, GeoJSON, GeolocateControl, MapLibre, @@ -343,7 +342,6 @@ {#if !simplified} - {/if} @@ -401,13 +399,13 @@ > {#snippet children({ feature }: { feature: Feature })} {#if useLocationPin} - + {:else} {feature.properties?.city - {@render popup?.({ marker: asMarker(feature) })} + {@render popup({ marker: asMarker(feature) })} {/if} {/snippet}