Increase image resolution for album and artist covers
This commit is contained in:
parent
47bbd7f7b2
commit
0544a0531a
1 changed files with 3 additions and 3 deletions
6
js/ui.js
6
js/ui.js
|
|
@ -239,7 +239,7 @@ export class UIRenderer {
|
||||||
try {
|
try {
|
||||||
const { album, tracks } = await this.api.getAlbum(albumId);
|
const { album, tracks } = await this.api.getAlbum(albumId);
|
||||||
|
|
||||||
imageEl.src = this.api.getCoverUrl(album.cover, '640');
|
imageEl.src = this.api.getCoverUrl(album.cover, '1280');
|
||||||
imageEl.style.backgroundColor = '';
|
imageEl.style.backgroundColor = '';
|
||||||
|
|
||||||
const explicitBadge = hasExplicitContent(album) ? this.createExplicitBadge() : '';
|
const explicitBadge = hasExplicitContent(album) ? this.createExplicitBadge() : '';
|
||||||
|
|
@ -285,7 +285,7 @@ export class UIRenderer {
|
||||||
try {
|
try {
|
||||||
const artist = await this.api.getArtist(artistId);
|
const artist = await this.api.getArtist(artistId);
|
||||||
|
|
||||||
imageEl.src = this.api.getArtistPictureUrl(artist.picture, '640');
|
imageEl.src = this.api.getArtistPictureUrl(artist.picture, '750');
|
||||||
imageEl.style.backgroundColor = '';
|
imageEl.style.backgroundColor = '';
|
||||||
nameEl.textContent = artist.name;
|
nameEl.textContent = artist.name;
|
||||||
metaEl.textContent = `${artist.popularity} popularity`;
|
metaEl.textContent = `${artist.popularity} popularity`;
|
||||||
|
|
@ -340,4 +340,4 @@ export class UIRenderer {
|
||||||
cacheInfo.textContent = `Cache: ${stats.memoryEntries}/${stats.maxSize} entries`;
|
cacheInfo.textContent = `Cache: ${stats.memoryEntries}/${stats.maxSize} entries`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue