Add card placeholder images

This commit is contained in:
jeffvli 2022-12-30 21:31:13 -08:00
parent b3d95f765c
commit 1f232fa4da
5 changed files with 15 additions and 5 deletions

View file

@ -466,7 +466,13 @@ const normalizeAlbum = (item: NDAlbum, server: ServerListItem, imageSize?: numbe
size: imageSize || 300,
});
const imagePlaceholderUrl = imageUrl?.replace(/size=\d+/, 'size=50') || null;
const imagePlaceholderUrl = getCoverArtUrl({
baseUrl: server.url,
coverArtId: item.coverArtId,
credential: server.credential,
size: 1,
});
const imageBackdropUrl = imageUrl?.replace(/size=\d+/, 'size=1000') || null;
return {