High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(web): remove map's fullscreen button (#29192)
Mees Frensel51f2905fcc25
diff --git a/i18n/en.json b/i18n/en.jsonindex 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.svelteindex 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}<div class="flex flex-col items-center gap-1">- <p class="font-bold">{lat.toPrecision(6)}, {lon.toPrecision(6)}</p>- <a+ <Text fontWeight="bold">{lat.toPrecision(6)}, {lon.toPrecision(6)}</Text>+ <Linkhref="https://www.openstreetmap.org/?mlat={lat}&mlon={lon}&zoom=13#map=15/{lat}/{lon}"- target="_blank"- class="font-medium text-primary underline focus:outline-none"+ class="text-primary">{$t('open_in_openstreetmap')}- </a>+ </Link></div>{/snippet}</Map>diff --git a/web/src/lib/components/shared-components/map/Map.svelte b/web/src/lib/components/shared-components/map/Map.svelteindex 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}<GeolocateControl position="top-left" />- <FullscreenControl position="top-left" /><ScaleControl /><AttributionControl compact={false} />{/if}@@ -401,13 +399,13 @@>{#snippet children({ feature }: { feature: Feature })}{#if useLocationPin}- <Icon icon={mdiMapMarker} size="50px" class="translate-y-[-50%] text-primary" />+ <Icon icon={mdiMapMarker} size="50px" class="translate-y-[calc(5px-50%)] text-primary" />{:else}<imgsrc={getAssetMediaUrl({ id: feature.properties?.id })}class="size-15 rounded-full border-2 border-immich-primary bg-immich-primary object-cover shadow-lg transition-all duration-200 hover:scale-150 hover:border-immich-dark-primary"alt={feature.properties?.city && feature.properties.country- ? $t('map_marker_for_images', {+ ? $t('map_marker_for_image', {values: { city: feature.properties.city, country: feature.properties.country },}): $t('map_marker_with_image')}@@ -415,7 +413,7 @@{/if}{#if popup}<Popup offset={[0, -30]} openOn="click" closeOnClickOutside>- {@render popup?.({ marker: asMarker(feature) })}+ {@render popup({ marker: asMarker(feature) })}</Popup>{/if}{/snippet}