From 98bb3de8da16321cf39c75c6e04889fbe403adb7 Mon Sep 17 00:00:00 2001 From: faupau Date: Tue, 9 May 2023 17:10:13 +0200 Subject: [PATCH] fix(web) small UI improvements (#2369) * small changes in asset viewer navigation * add conditional wrapper and scroll only content * fix formatting * update conditional wrapper * remove emptz title attribute * remove conditional-wrapper as it is not needed * remove isTimeline * fix map over sidebar * fix overlap * fix conflict * revert z-index * add relative z index --------- Co-authored-by: faupau03 --- .../asset-viewer/asset-viewer-nav-bar.svelte | 29 +++++++++++++++---- .../asset-viewer/asset-viewer.svelte | 4 +-- .../buttons/circle-icon-button.svelte | 6 +++- .../layouts/user-page-layout.svelte | 4 +-- web/src/routes/(user)/map/+page.svelte | 2 +- 5 files changed, 32 insertions(+), 13 deletions(-) diff --git a/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte b/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte index 5121361e24..2ab3df1df8 100644 --- a/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte +++ b/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte @@ -46,14 +46,15 @@
-
- dispatch('goBack')} /> +
+ dispatch('goBack')} />
{#if isOwner} dispatch('toggleArchive')} @@ -63,12 +64,14 @@ {#if showMotionPlayButton} {#if isMotionPhotoPlaying} dispatch('stopMotionPhoto')} /> {:else} dispatch('playMotionPhoto')} @@ -77,6 +80,7 @@ {/if} {#if showCopyButton} { @@ -88,18 +92,21 @@ {#if showDownloadButton} dispatch('download')} title="Download" /> {/if} dispatch('showDetail')} title="Info" /> {#if isOwner} dispatch('favorite')} title="Favorite" @@ -107,12 +114,22 @@ {/if} {#if isOwner} - dispatch('delete')} title="Delete" /> + dispatch('delete')} + title="Delete" + />
(isShowAssetOptions = false)}> - + {#if isShowAssetOptions} -
+
onMenuClick('addToAlbum')} text="Add to Album" /> onMenuClick('addToSharedAlbum')} diff --git a/web/src/lib/components/asset-viewer/asset-viewer.svelte b/web/src/lib/components/asset-viewer/asset-viewer.svelte index 4eec8f2505..8e8db38fa3 100644 --- a/web/src/lib/components/asset-viewer/asset-viewer.svelte +++ b/web/src/lib/components/asset-viewer/asset-viewer.svelte @@ -378,7 +378,7 @@ }} >