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