From ae217814426119f0089185497f9a3a5bafccafb7 Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Wed, 22 May 2024 14:14:53 +0200 Subject: [PATCH] fix(web): albums dark mode contrast + a11y issue (#9662) --- .../album-page/album-card-group.svelte | 12 +++--- .../components/album-page/album-card.svelte | 2 +- .../components/album-page/albums-table.svelte | 38 +++++++++++-------- 3 files changed, 30 insertions(+), 22 deletions(-) diff --git a/web/src/lib/components/album-page/album-card-group.svelte b/web/src/lib/components/album-page/album-card-group.svelte index 4c303caa68..99347b3a02 100644 --- a/web/src/lib/components/album-page/album-card-group.svelte +++ b/web/src/lib/components/album-page/album-card-group.svelte @@ -29,17 +29,19 @@ {#if group}
toggleAlbumGroupCollapsing(group.id)} class="w-fit mt-2 pt-2 pr-2 mb-2 hover:cursor-pointer"> +
+ ({albums.length} {albums.length > 1 ? 'albums' : 'album'}) +{album.assetCount.toLocaleString($locale)} diff --git a/web/src/lib/components/album-page/albums-table.svelte b/web/src/lib/components/album-page/albums-table.svelte index 09d924ca2c..1af4d7629d 100644 --- a/web/src/lib/components/album-page/albums-table.svelte +++ b/web/src/lib/components/album-page/albums-table.svelte @@ -40,24 +40,30 @@ {#each groupedAlbums as albumGroup (albumGroup.id)} {@const isCollapsed = isAlbumGroupCollapsed($albumViewSettings, albumGroup.id)} {@const iconRotation = isCollapsed ? 'rotate-0' : 'rotate-90'} - - -
toggleAlbumGroupCollapsing(albumGroup.id)} + class="flex w-full mt-4 rounded-md" + aria-expanded={!isCollapsed} > -