From e4d0560d49130a0d945cf3bcfafe5387e34798d3 Mon Sep 17 00:00:00 2001 From: Andrew Roberts <66187991+azroberts8@users.noreply.github.com> Date: Thu, 1 Feb 2024 18:50:14 -0800 Subject: [PATCH] feat(web): improved album view UI & album card UI (#6822) * Modified album card to show gray background instead of purple outline on hover * Expanded margins in album viewer * Applied prettier to modified files --- web/src/lib/components/album-page/album-card.svelte | 12 ++++-------- .../lib/components/album-page/album-viewer.svelte | 4 +--- web/src/routes/(user)/albums/[albumId]/+page.svelte | 2 +- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/web/src/lib/components/album-page/album-card.svelte b/web/src/lib/components/album-page/album-card.svelte index e04a8f1f06..a9e94c4dd8 100644 --- a/web/src/lib/components/album-page/album-card.svelte +++ b/web/src/lib/components/album-page/album-card.svelte @@ -60,7 +60,7 @@
dispatchClick('click', album)} on:keydown={() => dispatchClick('click', album)} on:mouseenter={() => (showVerticalDots = true)} @@ -87,20 +87,16 @@ loading={preload ? 'eager' : 'lazy'} src={imageData} alt={album.id} - class={`z-0 h-full w-full rounded-3xl object-cover transition-all duration-300 hover:shadow-lg`} + class={`z-0 h-full w-full rounded-xl object-cover transition-all duration-300 hover:shadow-lg`} data-testid="album-image" draggable="false" /> -
+

diff --git a/web/src/lib/components/album-page/album-viewer.svelte b/web/src/lib/components/album-page/album-viewer.svelte index 7feb3c7aa9..23cf5959c5 100644 --- a/web/src/lib/components/album-page/album-viewer.svelte +++ b/web/src/lib/components/album-page/album-viewer.svelte @@ -137,9 +137,7 @@ {/if} -

+
diff --git a/web/src/routes/(user)/albums/[albumId]/+page.svelte b/web/src/routes/(user)/albums/[albumId]/+page.svelte index 9808474e0e..f15ff6411c 100644 --- a/web/src/routes/(user)/albums/[albumId]/+page.svelte +++ b/web/src/routes/(user)/albums/[albumId]/+page.svelte @@ -572,7 +572,7 @@ {/if}
{#if viewMode === ViewMode.SELECT_ASSETS}