formatting tweaks in NowPlaying.astro

vielle.dev 9879afa4 98f28fc2

verified
Changed files
+7 -7
src
components
home
+7 -7
src/components/home/playing/NowPlaying.astro
··· 60 <a 61 slot="title" 62 href={isSong(track) ? track.item.external_urls.spotify : "#"} 63 - > 64 - {isSong(track) ? track.item.name : null} 65 - </a> 66 - <span slot="album">{isSong(track) ? track.item.album.name : null}</span> 67 <span slot="artists"> 68 { 69 isSong(track) ? ( ··· 659 // 3. when the playback head is at the start 660 .finished.then(async () => { 661 // 4. update the record art 662 - elements.recordArt.src = data 663 - ? data?.art 664 - : "https://undefined"; 665 666 // 5. update popup 667 if (data) elements.nowPlaying.updateMetadata(data);
··· 60 <a 61 slot="title" 62 href={isSong(track) ? track.item.external_urls.spotify : "#"} 63 + set:text={isSong(track) ? track.item.name : null} 64 + /> 65 + <span 66 + slot="album" 67 + set:text={isSong(track) ? track.item.album.name : null} 68 + /> 69 <span slot="artists"> 70 { 71 isSong(track) ? ( ··· 661 // 3. when the playback head is at the start 662 .finished.then(async () => { 663 // 4. update the record art 664 + elements.recordArt.src = data ? data?.art : "https://undefined"; 665 666 // 5. update popup 667 if (data) elements.nowPlaying.updateMetadata(data);