mirror of
https://github.com/immich-app/immich.git
synced 2026-02-28 01:29:04 +03:00
fix(web): album description auto height (#26420)
This commit is contained in:
@@ -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}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user