diff --git a/src/views/detail.js b/src/views/detail.js index b773968..f804ace 100644 --- a/src/views/detail.js +++ b/src/views/detail.js @@ -161,13 +161,9 @@ export async function loadArtistDetail(artist) { const info = infoRes.status === 'fulfilled' ? infoRes.value?.artistInfo2 : null; if(info?.biography && bioEl) { const bio = info.biography.replace(/]+>/g,'').replace(/<\/a>/g,'').replace(/<[^>]+>/g,'').trim(); - const short = bio.length > 400 ? bio.slice(0,400)+'…' : bio; - if(short) { - window._artistBioFull = bio; + if(bio) { bioEl.innerHTML = `
Über
-
${esc(short)}${bio.length > 400 - ? ` ` - : ''}
`; +
${esc(bio)}
`; } } @@ -414,10 +410,6 @@ export async function loadAlbumDetail(album) { } // ─── HELPERS ─── -export function expandArtistBio() { - const el = document.getElementById('artist-bio-text'); - if(el && window._artistBioFull) el.textContent = window._artistBioFull; -} async function _extractColor(src) { return new Promise(resolve => {