From 2143d55665f1899375b99c208745cf8c62c782e0 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 13 Apr 2024 15:04:11 -0300 Subject: content: generateTrackCoverArtwork: use album dimensions --- src/content/dependencies/generateTrackCoverArtwork.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/content') diff --git a/src/content/dependencies/generateTrackCoverArtwork.js b/src/content/dependencies/generateTrackCoverArtwork.js index 6c056c9a..a241eaf2 100644 --- a/src/content/dependencies/generateTrackCoverArtwork.js +++ b/src/content/dependencies/generateTrackCoverArtwork.js @@ -17,12 +17,18 @@ export default { color: track.color, + + dimensions: + (track.hasUniqueCoverArt + ? track.coverArtDimensions + : track.album.coverArtDimensions), }), generate: (data, relations) => relations.coverArtwork.slots({ path: data.path, color: data.color, + dimensions: data.dimensions, }), }; -- cgit 1.3.0-6-gf8a5