From 459fee9ee48fbaeaa4c981b2891176a7efc22fca Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Sat, 25 May 2024 21:36:36 +0200 Subject: [PATCH] fix(web): add location modal invisible on safari (#9756) --- .../asset-viewer/detail-panel-location.svelte | 87 +++++++++++++++++++ .../asset-viewer/detail-panel.svelte | 75 +--------------- 2 files changed, 89 insertions(+), 73 deletions(-) create mode 100644 web/src/lib/components/asset-viewer/detail-panel-location.svelte diff --git a/web/src/lib/components/asset-viewer/detail-panel-location.svelte b/web/src/lib/components/asset-viewer/detail-panel-location.svelte new file mode 100644 index 0000000000..faff480934 --- /dev/null +++ b/web/src/lib/components/asset-viewer/detail-panel-location.svelte @@ -0,0 +1,87 @@ + + +{#if asset.exifInfo?.city} + +{:else if !asset.exifInfo?.city && isOwner} + +{/if} + +{#if isShowChangeLocation} + + handleConfirmChangeLocation(gps)} + on:cancel={() => (isShowChangeLocation = false)} + /> + +{/if} diff --git a/web/src/lib/components/asset-viewer/detail-panel.svelte b/web/src/lib/components/asset-viewer/detail-panel.svelte index 52a80e3baa..0f901d67a3 100644 --- a/web/src/lib/components/asset-viewer/detail-panel.svelte +++ b/web/src/lib/components/asset-viewer/detail-panel.svelte @@ -1,4 +1,5 @@
@@ -464,65 +451,7 @@ {/if} - {#if asset.exifInfo?.city} - - {:else if !asset.exifInfo?.city && isOwner} - - {/if} - {#if isShowChangeLocation} - handleConfirmChangeLocation(gps)} - on:cancel={() => (isShowChangeLocation = false)} - /> - {/if} +