diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-04-13 15:04:11 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-04-13 15:47:34 -0300 |
commit | 2143d55665f1899375b99c208745cf8c62c782e0 (patch) | |
tree | 59fa70cf889ff83e9037b8dbc5d5c118def0ff03 /src/content/dependencies | |
parent | 4f4fb3139a166d44f5a2f1a034ee460ed70c9d6f (diff) |
content: generateTrackCoverArtwork: use album dimensions
Diffstat (limited to 'src/content/dependencies')
-rw-r--r-- | src/content/dependencies/generateTrackCoverArtwork.js | 6 |
1 files changed, 6 insertions, 0 deletions
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, }), }; |