fix(web): album description auto height (#26420)

This commit is contained in:
Michel Heusschen
2026-02-21 14:43:23 +01:00
committed by GitHub
parent 672743f543
commit 905b9bd560

View File

@@ -301,9 +301,10 @@
return; return;
} }
album.albumUsers = album.albumUsers.map((albumUser) => const albumUsers = album.albumUsers.map((albumUser) =>
albumUser.user.id === userId ? { ...albumUser, role } : albumUser, albumUser.user.id === userId ? { ...albumUser, role } : albumUser,
); );
album = { ...album, albumUsers };
}; };
const { Cast } = $derived(getGlobalActions($t)); const { Cast } = $derived(getGlobalActions($t));
@@ -357,7 +358,7 @@
id={album.id} id={album.id}
albumName={album.albumName} albumName={album.albumName}
{isOwned} {isOwned}
onUpdate={(albumName) => (album.albumName = albumName)} onUpdate={(albumName) => (album = { ...album, albumName })}
/> />
{#if album.assetCount > 0} {#if album.assetCount > 0}
@@ -406,8 +407,11 @@
<ActionButton action={Share} /> <ActionButton action={Share} />
</div> </div>
{/if} {/if}
<!-- ALBUM DESCRIPTION --> <AlbumDescription
<AlbumDescription id={album.id} bind:description={album.description} {isOwned} /> id={album.id}
{isOwned}
bind:description={() => album.description, (description) => (album = { ...album, description })}
/>
</section> </section>
{/if} {/if}