wip: add portal so modals show on Safari in detail panel
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Icon from '$lib/components/elements/icon.svelte';
|
import Icon from '$lib/components/elements/icon.svelte';
|
||||||
import TagAssetForm from '$lib/components/forms/tag-asset-form.svelte';
|
import TagAssetForm from '$lib/components/forms/tag-asset-form.svelte';
|
||||||
|
import Portal from '$lib/components/shared-components/portal/portal.svelte';
|
||||||
import { AppRoute } from '$lib/constants';
|
import { AppRoute } from '$lib/constants';
|
||||||
import { isSharedLink } from '$lib/utils';
|
import { isSharedLink } from '$lib/utils';
|
||||||
import { removeTag, tagAssets } from '$lib/utils/asset-utils';
|
import { removeTag, tagAssets } from '$lib/utils/asset-utils';
|
||||||
@@ -76,5 +77,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if isOpen}
|
{#if isOpen}
|
||||||
<TagAssetForm onTag={(tagsIds) => handleTag(tagsIds)} onCancel={handleCancel} />
|
<Portal>
|
||||||
|
<TagAssetForm onTag={(tagsIds) => handleTag(tagsIds)} onCancel={handleCancel} />
|
||||||
|
</Portal>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
import { t } from 'svelte-i18n';
|
import { t } from 'svelte-i18n';
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
import DetailPanelTags from '$lib/components/asset-viewer/detail-panel-tags.svelte';
|
import DetailPanelTags from '$lib/components/asset-viewer/detail-panel-tags.svelte';
|
||||||
|
import Portal from '$lib/components/shared-components/portal/portal.svelte';
|
||||||
|
|
||||||
export let asset: AssetResponseDto;
|
export let asset: AssetResponseDto;
|
||||||
export let albums: AlbumResponseDto[] = [];
|
export let albums: AlbumResponseDto[] = [];
|
||||||
@@ -332,12 +333,14 @@
|
|||||||
})
|
})
|
||||||
: DateTime.now()}
|
: DateTime.now()}
|
||||||
{@const assetTimeZoneOriginal = asset.exifInfo?.timeZone ?? ''}
|
{@const assetTimeZoneOriginal = asset.exifInfo?.timeZone ?? ''}
|
||||||
<ChangeDate
|
<Portal>
|
||||||
initialDate={assetDateTimeOriginal}
|
<ChangeDate
|
||||||
initialTimeZone={assetTimeZoneOriginal}
|
initialDate={assetDateTimeOriginal}
|
||||||
on:confirm={({ detail: date }) => handleConfirmChangeDate(date)}
|
initialTimeZone={assetTimeZoneOriginal}
|
||||||
on:cancel={() => (isShowChangeDate = false)}
|
on:confirm={({ detail: date }) => handleConfirmChangeDate(date)}
|
||||||
/>
|
on:cancel={() => (isShowChangeDate = false)}
|
||||||
|
/>
|
||||||
|
</Portal>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if asset.exifInfo?.fileSizeInByte}
|
{#if asset.exifInfo?.fileSizeInByte}
|
||||||
|
|||||||
Reference in New Issue
Block a user