mirror of
https://github.com/immich-app/immich.git
synced 2025-11-24 17:30:43 +09:00
feat(web): auto fit bounds for map modal (#20345)
This commit is contained in:
@@ -8,10 +8,9 @@
|
||||
type Props = {
|
||||
onClose: (assetIds?: string[]) => void;
|
||||
mapMarkers: MapMarkerResponseDto[];
|
||||
zoom?: number;
|
||||
};
|
||||
|
||||
let { onClose, mapMarkers, zoom }: Props = $props();
|
||||
let { onClose, mapMarkers }: Props = $props();
|
||||
</script>
|
||||
|
||||
<Modal title={$t('map')} size="giant" {onClose}>
|
||||
@@ -26,15 +25,7 @@
|
||||
</div>
|
||||
{/await}
|
||||
{:then { default: Map }}
|
||||
<Map
|
||||
center={undefined}
|
||||
{zoom}
|
||||
clickable={false}
|
||||
{mapMarkers}
|
||||
onSelect={onClose}
|
||||
showSettings={false}
|
||||
rounded
|
||||
/>
|
||||
<Map clickable={false} {mapMarkers} onSelect={onClose} showSettings={false} rounded autoFitBounds />
|
||||
{/await}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user