File tree Expand file tree Collapse file tree 5 files changed +17
-12
lines changed
routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]] Expand file tree Collapse file tree 5 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 495
495
zoom ={12.5 }
496
496
simplified
497
497
useLocationPin
498
+ showSimpleControls ={! showEditFaces }
498
499
onOpenInMapView ={() => goto (` ${AppRoute .MAP }#12.5/${latlng .lat }/${latlng .lng } ` )}
499
500
>
500
501
{#snippet popup ({ marker })}
Original file line number Diff line number Diff line change 55
55
};
56
56
</script >
57
57
58
- <div class =" absolute end-0 top-0 flex place-items-center gap-1 text-xs font-medium text-white" >
58
+ <div class =" absolute end-0 top-0 z-1 flex place-items-center gap-1 text-xs font-medium text-white" >
59
59
{#if showTime }
60
60
<span class =" pt-2" >
61
61
{#if remainingSeconds < 60 }
Original file line number Diff line number Diff line change 45
45
onscroll ={onScroll }
46
46
>
47
47
{#if canScrollLeft || canScrollRight }
48
- <div class =" sticky start-0" >
48
+ <div class =" sticky start-0 z-1 " >
49
49
{#if canScrollLeft }
50
50
<div class ="absolute start-4 top-24" transition:fade ={{ duration : 200 }}>
51
51
<button
60
60
</div >
61
61
{/if }
62
62
{#if canScrollRight }
63
- <div class ="absolute end-4 top-24" transition:fade ={{ duration : 200 }}>
63
+ <div class ="absolute end-4 top-24 z-1 " transition:fade ={{ duration : 200 }}>
64
64
<button
65
65
type =" button"
66
66
class =" rounded-full border border-gray-500 bg-gray-100 p-2 text-gray-500 opacity-50 hover:opacity-100"
Original file line number Diff line number Diff line change 54
54
onClickPoint? : ({ lat, lng }: { lat: number ; lng: number }) => void ;
55
55
popup? : import (' svelte' ).Snippet <[{ marker: MapMarkerResponseDto }]>;
56
56
rounded? : boolean ;
57
+ showSimpleControls? : boolean ;
57
58
}
58
59
59
60
let {
70
71
onClickPoint = () => {},
71
72
popup,
72
73
rounded = false ,
74
+ showSimpleControls = true ,
73
75
}: Props = $props ();
74
76
75
77
let map: maplibregl .Map | undefined = $state ();
266
268
bind:map
267
269
>
268
270
{#snippet children ({ map }: { map: maplibregl .Map })}
269
- <NavigationControl position ="top-left" showCompass ={! simplified } />
270
-
271
- {#if ! simplified }
272
- <GeolocateControl position =" top-left" />
273
- <FullscreenControl position =" top-left" />
274
- <ScaleControl />
275
- <AttributionControl compact ={false } />
271
+ {#if showSimpleControls }
272
+ <NavigationControl position ="top-left" showCompass ={! simplified } />
273
+
274
+ {#if ! simplified }
275
+ <GeolocateControl position =" top-left" />
276
+ <FullscreenControl position =" top-left" />
277
+ <ScaleControl />
278
+ <AttributionControl compact ={false } />
279
+ {/if }
276
280
{/if }
277
281
278
282
{#if showSettings }
285
289
</Control >
286
290
{/if }
287
291
288
- {#if onOpenInMapView }
292
+ {#if onOpenInMapView && showSimpleControls }
289
293
<Control position =" top-right" >
290
294
<ControlGroup >
291
295
<ControlButton onclick ={() => onOpenInMapView ()}>
Original file line number Diff line number Diff line change 452
452
{/if }
453
453
</section >
454
454
{#if isEditingName }
455
- <div class =" absolute w-64 sm:w-96" >
455
+ <div class =" absolute w-64 sm:w-96 z-1 " >
456
456
{#if isSearchingPeople }
457
457
<div
458
458
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"
You can’t perform that action at this time.
0 commit comments