|
@@ -46,14 +46,15 @@
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<div
|
|
<div
|
|
- class="h-16 flex justify-between place-items-center px-3 transition-transform duration-200 z-[1001]"
|
|
|
|
|
|
+ class="h-16 flex justify-between place-items-center px-3 transition-transform duration-200 z-[1001] bg-gradient-to-b from-black/40"
|
|
>
|
|
>
|
|
- <div>
|
|
|
|
- <CircleIconButton logo={ArrowLeft} on:click={() => dispatch('goBack')} />
|
|
|
|
|
|
+ <div class="text-white">
|
|
|
|
+ <CircleIconButton isOpacity={true} logo={ArrowLeft} on:click={() => dispatch('goBack')} />
|
|
</div>
|
|
</div>
|
|
<div class="text-white flex gap-2 justify-end w-[calc(100%-3rem)] overflow-hidden">
|
|
<div class="text-white flex gap-2 justify-end w-[calc(100%-3rem)] overflow-hidden">
|
|
{#if isOwner}
|
|
{#if isOwner}
|
|
<CircleIconButton
|
|
<CircleIconButton
|
|
|
|
+ isOpacity={true}
|
|
logo={asset.isArchived ? ArchiveArrowUpOutline : ArchiveArrowDownOutline}
|
|
logo={asset.isArchived ? ArchiveArrowUpOutline : ArchiveArrowDownOutline}
|
|
title={asset.isArchived ? 'Unarchive' : 'Archive'}
|
|
title={asset.isArchived ? 'Unarchive' : 'Archive'}
|
|
on:click={() => dispatch('toggleArchive')}
|
|
on:click={() => dispatch('toggleArchive')}
|
|
@@ -63,12 +64,14 @@
|
|
{#if showMotionPlayButton}
|
|
{#if showMotionPlayButton}
|
|
{#if isMotionPhotoPlaying}
|
|
{#if isMotionPhotoPlaying}
|
|
<CircleIconButton
|
|
<CircleIconButton
|
|
|
|
+ isOpacity={true}
|
|
logo={MotionPauseOutline}
|
|
logo={MotionPauseOutline}
|
|
title="Stop Motion Photo"
|
|
title="Stop Motion Photo"
|
|
on:click={() => dispatch('stopMotionPhoto')}
|
|
on:click={() => dispatch('stopMotionPhoto')}
|
|
/>
|
|
/>
|
|
{:else}
|
|
{:else}
|
|
<CircleIconButton
|
|
<CircleIconButton
|
|
|
|
+ isOpacity={true}
|
|
logo={MotionPlayOutline}
|
|
logo={MotionPlayOutline}
|
|
title="Play Motion Photo"
|
|
title="Play Motion Photo"
|
|
on:click={() => dispatch('playMotionPhoto')}
|
|
on:click={() => dispatch('playMotionPhoto')}
|
|
@@ -77,6 +80,7 @@
|
|
{/if}
|
|
{/if}
|
|
{#if showCopyButton}
|
|
{#if showCopyButton}
|
|
<CircleIconButton
|
|
<CircleIconButton
|
|
|
|
+ isOpacity={true}
|
|
logo={ContentCopy}
|
|
logo={ContentCopy}
|
|
title="Copy Image"
|
|
title="Copy Image"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
@@ -88,18 +92,21 @@
|
|
|
|
|
|
{#if showDownloadButton}
|
|
{#if showDownloadButton}
|
|
<CircleIconButton
|
|
<CircleIconButton
|
|
|
|
+ isOpacity={true}
|
|
logo={CloudDownloadOutline}
|
|
logo={CloudDownloadOutline}
|
|
on:click={() => dispatch('download')}
|
|
on:click={() => dispatch('download')}
|
|
title="Download"
|
|
title="Download"
|
|
/>
|
|
/>
|
|
{/if}
|
|
{/if}
|
|
<CircleIconButton
|
|
<CircleIconButton
|
|
|
|
+ isOpacity={true}
|
|
logo={InformationOutline}
|
|
logo={InformationOutline}
|
|
on:click={() => dispatch('showDetail')}
|
|
on:click={() => dispatch('showDetail')}
|
|
title="Info"
|
|
title="Info"
|
|
/>
|
|
/>
|
|
{#if isOwner}
|
|
{#if isOwner}
|
|
<CircleIconButton
|
|
<CircleIconButton
|
|
|
|
+ isOpacity={true}
|
|
logo={asset.isFavorite ? Heart : HeartOutline}
|
|
logo={asset.isFavorite ? Heart : HeartOutline}
|
|
on:click={() => dispatch('favorite')}
|
|
on:click={() => dispatch('favorite')}
|
|
title="Favorite"
|
|
title="Favorite"
|
|
@@ -107,12 +114,22 @@
|
|
{/if}
|
|
{/if}
|
|
|
|
|
|
{#if isOwner}
|
|
{#if isOwner}
|
|
- <CircleIconButton logo={DeleteOutline} on:click={() => dispatch('delete')} title="Delete" />
|
|
|
|
|
|
+ <CircleIconButton
|
|
|
|
+ isOpacity={true}
|
|
|
|
+ logo={DeleteOutline}
|
|
|
|
+ on:click={() => dispatch('delete')}
|
|
|
|
+ title="Delete"
|
|
|
|
+ />
|
|
<div use:clickOutside on:outclick={() => (isShowAssetOptions = false)}>
|
|
<div use:clickOutside on:outclick={() => (isShowAssetOptions = false)}>
|
|
- <CircleIconButton logo={DotsVertical} on:click={showOptionsMenu} title="More">
|
|
|
|
|
|
+ <CircleIconButton
|
|
|
|
+ isOpacity={true}
|
|
|
|
+ logo={DotsVertical}
|
|
|
|
+ on:click={showOptionsMenu}
|
|
|
|
+ title="More"
|
|
|
|
+ >
|
|
{#if isShowAssetOptions}
|
|
{#if isShowAssetOptions}
|
|
<ContextMenu {...contextMenuPosition}>
|
|
<ContextMenu {...contextMenuPosition}>
|
|
- <div class="flex flex-col rounded-lg ">
|
|
|
|
|
|
+ <div class="flex flex-col rounded-lg text-black bg-immich-bg">
|
|
<MenuOption on:click={() => onMenuClick('addToAlbum')} text="Add to Album" />
|
|
<MenuOption on:click={() => onMenuClick('addToAlbum')} text="Add to Album" />
|
|
<MenuOption
|
|
<MenuOption
|
|
on:click={() => onMenuClick('addToSharedAlbum')}
|
|
on:click={() => onMenuClick('addToSharedAlbum')}
|