|
@@ -61,7 +61,7 @@
|
|
|
</script>
|
|
|
|
|
|
<div
|
|
|
- class="hover:cursor-pointer mt-4 relative"
|
|
|
+ class="group hover:cursor-pointer mt-4 border-[3px] border-transparent dark:hover:border-immich-dark-primary/75 hover:border-immich-primary/75 rounded-3xl p-5 relative"
|
|
|
on:click={() => dispatchClick('click', album)}
|
|
|
on:keydown={() => dispatchClick('click', album)}
|
|
|
data-testid="album-card"
|
|
@@ -69,32 +69,34 @@
|
|
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
|
<div
|
|
|
id={`icon-${album.id}`}
|
|
|
- class="absolute top-2 right-2"
|
|
|
+ class="absolute top-6 right-6 z-10"
|
|
|
on:click|stopPropagation|preventDefault={showAlbumContextMenu}
|
|
|
data-testid="context-button-parent"
|
|
|
>
|
|
|
- <CircleIconButton logo={DotsVertical} size={'20'} hoverColor={'rgba(95,99,104, 0.5)'} />
|
|
|
+ <CircleIconButton logo={DotsVertical} size={'20'} />
|
|
|
</div>
|
|
|
|
|
|
- <div class={`aspect-square z-[-1]`}>
|
|
|
+ <div class={`aspect-square relative`}>
|
|
|
<img
|
|
|
src={imageData}
|
|
|
alt={album.id}
|
|
|
- class={`object-cover h-full w-full transition-all z-0 rounded-xl duration-300 hover:shadow-lg`}
|
|
|
+ class={`object-cover h-full w-full transition-all z-0 rounded-3xl duration-300 hover:shadow-lg`}
|
|
|
data-testid="album-image"
|
|
|
draggable="false"
|
|
|
/>
|
|
|
+ <div class="w-full h-full absolute top-0 rounded-3xl group-hover:bg-indigo-800/25" />
|
|
|
</div>
|
|
|
|
|
|
<div class="mt-4">
|
|
|
<p
|
|
|
- class="text-sm font-medium text-gray-800 dark:text-immich-dark-primary"
|
|
|
+ class="text-xl font-semibold dark:text-immich-dark-primary text-immich-primary w-full truncate"
|
|
|
data-testid="album-name"
|
|
|
+ title={album.albumName}
|
|
|
>
|
|
|
{album.albumName}
|
|
|
</p>
|
|
|
|
|
|
- <span class="text-xs flex gap-2 dark:text-immich-dark-fg" data-testid="album-details">
|
|
|
+ <span class="text-sm flex gap-2 dark:text-immich-dark-fg" data-testid="album-details">
|
|
|
<p>
|
|
|
{album.assetCount.toLocaleString($locale)}
|
|
|
{album.assetCount == 1 ? `item` : `items`}
|