mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 12:26:47 +01:00
fix(web): table headers when there's no album (#4673)
This commit is contained in:
parent
d98a2a5f79
commit
f0dd1d715a
1 changed files with 66 additions and 62 deletions
|
@ -248,13 +248,17 @@
|
||||||
</div>
|
</div>
|
||||||
</LinkButton>
|
</LinkButton>
|
||||||
</div>
|
</div>
|
||||||
|
{#if $albums.length !== 0}
|
||||||
<!-- Album Card -->
|
<!-- Album Card -->
|
||||||
{#if $albumViewSettings.view === AlbumViewMode.Cover}
|
{#if $albumViewSettings.view === AlbumViewMode.Cover}
|
||||||
<div class="grid grid-cols-[repeat(auto-fill,minmax(15rem,1fr))]">
|
<div class="grid grid-cols-[repeat(auto-fill,minmax(15rem,1fr))]">
|
||||||
{#each $albums as album (album.id)}
|
{#each $albums as album (album.id)}
|
||||||
<a data-sveltekit-preload-data="hover" href={`albums/${album.id}`} animate:flip={{ duration: 200 }}>
|
<a data-sveltekit-preload-data="hover" href={`albums/${album.id}`} animate:flip={{ duration: 200 }}>
|
||||||
<AlbumCard {album} on:showalbumcontextmenu={(e) => showAlbumContextMenu(e.detail, album)} user={data.user} />
|
<AlbumCard
|
||||||
|
{album}
|
||||||
|
on:showalbumcontextmenu={(e) => showAlbumContextMenu(e.detail, album)}
|
||||||
|
user={data.user}
|
||||||
|
/>
|
||||||
</a>
|
</a>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
@ -312,7 +316,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<!-- Empty Message -->
|
<!-- Empty Message -->
|
||||||
{#if $albums.length === 0}
|
{:else}
|
||||||
<EmptyPlaceholder
|
<EmptyPlaceholder
|
||||||
text="Create an album to organize your photos and videos"
|
text="Create an album to organize your photos and videos"
|
||||||
actionHandler={handleCreateAlbum}
|
actionHandler={handleCreateAlbum}
|
||||||
|
|
Loading…
Reference in a new issue