diff --git a/web/src/routes/(user)/albums/+page.svelte b/web/src/routes/(user)/albums/+page.svelte index 0110cfaa87..3877d026f0 100644 --- a/web/src/routes/(user)/albums/+page.svelte +++ b/web/src/routes/(user)/albums/+page.svelte @@ -248,71 +248,75 @@ - - - {#if $albumViewSettings.view === AlbumViewMode.Cover} -
- {#each $albums as album (album.id)} - - showAlbumContextMenu(e.detail, album)} user={data.user} /> - - {/each} -
- {:else if $albumViewSettings.view === AlbumViewMode.List} - - - - {#each Object.keys(sortByOptions) as key (key)} - - {/each} - - - - + {#if $albums.length !== 0} + + {#if $albumViewSettings.view === AlbumViewMode.Cover} +
{#each $albums as album (album.id)} -
goto(`albums/${album.id}`)} - on:keydown={(event) => event.key === 'Enter' && goto(`albums/${album.id}`)} - tabindex="0" - > - - - - - - + + showAlbumContextMenu(e.detail, album)} + user={data.user} + /> + {/each} - -
{album.albumName} - {album.assetCount} - {album.assetCount == 1 ? `item` : `items`} -
- {/if} + + {:else if $albumViewSettings.view === AlbumViewMode.List} + + + + {#each Object.keys(sortByOptions) as key (key)} + + {/each} + + + + + {#each $albums as album (album.id)} + goto(`albums/${album.id}`)} + on:keydown={(event) => event.key === 'Enter' && goto(`albums/${album.id}`)} + tabindex="0" + > + + + + + + + {/each} + +
{album.albumName} + {album.assetCount} + {album.assetCount == 1 ? `item` : `items`} +
+ {/if} - - {#if $albums.length === 0} + + {:else}