fix: more z-index issue

This commit is contained in:
Alex 2025-05-22 12:01:49 -05:00
parent 1f84cbe7e5
commit 86bc7a9a33
No known key found for this signature in database
GPG key ID: 53CD082B3A5E1082
5 changed files with 16 additions and 11 deletions
web/src
lib/components
asset-viewer
assets/thumbnail
photos-page
shared-components/map
routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]

View file

@ -495,6 +495,7 @@
zoom={12.5}
simplified
useLocationPin
showSimpleControls={!showEditFaces}
onOpenInMapView={() => goto(`${AppRoute.MAP}#12.5/${latlng.lat}/${latlng.lng}`)}
>
{#snippet popup({ marker })}

View file

@ -55,7 +55,7 @@
};
</script>
<div class="absolute end-0 top-0 flex place-items-center gap-1 text-xs font-medium text-white">
<div class="absolute end-0 top-0 z-1 flex place-items-center gap-1 text-xs font-medium text-white">
{#if showTime}
<span class="pt-2">
{#if remainingSeconds < 60}

View file

@ -45,7 +45,7 @@
onscroll={onScroll}
>
{#if canScrollLeft || canScrollRight}
<div class="sticky start-0">
<div class="sticky start-0 z-1">
{#if canScrollLeft}
<div class="absolute start-4 top-24" transition:fade={{ duration: 200 }}>
<button
@ -60,7 +60,7 @@
</div>
{/if}
{#if canScrollRight}
<div class="absolute end-4 top-24" transition:fade={{ duration: 200 }}>
<div class="absolute end-4 top-24 z-1" transition:fade={{ duration: 200 }}>
<button
type="button"
class="rounded-full border border-gray-500 bg-gray-100 p-2 text-gray-500 opacity-50 hover:opacity-100"

View file

@ -54,6 +54,7 @@
onClickPoint?: ({ lat, lng }: { lat: number; lng: number }) => void;
popup?: import('svelte').Snippet<[{ marker: MapMarkerResponseDto }]>;
rounded?: boolean;
showSimpleControls?: boolean;
}
let {
@ -70,6 +71,7 @@
onClickPoint = () => {},
popup,
rounded = false,
showSimpleControls = true,
}: Props = $props();
let map: maplibregl.Map | undefined = $state();
@ -266,13 +268,15 @@
bind:map
>
{#snippet children({ map }: { map: maplibregl.Map })}
<NavigationControl position="top-left" showCompass={!simplified} />
{#if showSimpleControls}
<NavigationControl position="top-left" showCompass={!simplified} />
{#if !simplified}
<GeolocateControl position="top-left" />
<FullscreenControl position="top-left" />
<ScaleControl />
<AttributionControl compact={false} />
{#if !simplified}
<GeolocateControl position="top-left" />
<FullscreenControl position="top-left" />
<ScaleControl />
<AttributionControl compact={false} />
{/if}
{/if}
{#if showSettings}
@ -285,7 +289,7 @@
</Control>
{/if}
{#if onOpenInMapView}
{#if onOpenInMapView && showSimpleControls}
<Control position="top-right">
<ControlGroup>
<ControlButton onclick={() => onOpenInMapView()}>

View file

@ -452,7 +452,7 @@
{/if}
</section>
{#if isEditingName}
<div class="absolute w-64 sm:w-96">
<div class="absolute w-64 sm:w-96 z-1">
{#if isSearchingPeople}
<div
class="flex border h-14 rounded-b-lg border-gray-400 dark:border-immich-dark-gray place-items-center bg-gray-200 p-2 dark:bg-gray-700"