Show SoulSync logo as fallback for missing sidebar album art
Sidebar media player now shows the SoulSync logo instead of a broken image icon when no album art is available or when no track is playing. Default src, onerror fallback, and clear-player paths all use /static/trans2.png.
This commit is contained in:
parent
7cfd1cae3f
commit
5ed819a062
2 changed files with 4 additions and 4 deletions
|
|
@ -259,7 +259,7 @@
|
|||
|
||||
<!-- Track info row -->
|
||||
<div class="media-header">
|
||||
<img class="sidebar-album-art" id="sidebar-album-art" src="" alt="">
|
||||
<img class="sidebar-album-art" id="sidebar-album-art" src="/static/trans2.png" alt="" onerror="this.src='/static/trans2.png'">
|
||||
<div class="media-info">
|
||||
<div class="track-title" id="track-title">No track</div>
|
||||
<div class="artist-name" id="artist-name">Unknown Artist</div>
|
||||
|
|
|
|||
|
|
@ -4284,9 +4284,9 @@ function updateNpTrackInfo() {
|
|||
if (artUrl) {
|
||||
sidebarArt.src = artUrl;
|
||||
sidebarArt.style.display = '';
|
||||
sidebarArt.onerror = () => { sidebarArt.src = ''; };
|
||||
sidebarArt.onerror = () => { sidebarArt.src = '/static/trans2.png'; };
|
||||
} else {
|
||||
sidebarArt.src = '';
|
||||
sidebarArt.src = '/static/trans2.png';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -4332,7 +4332,7 @@ function updateNpTrackInfo() {
|
|||
artistEl.textContent = 'Unknown Artist';
|
||||
albumEl.textContent = 'Unknown Album';
|
||||
if (artImg) artImg.classList.add('hidden');
|
||||
if (sidebarArt) sidebarArt.src = '';
|
||||
if (sidebarArt) sidebarArt.src = '/static/trans2.png';
|
||||
if (badgesEl) badgesEl.innerHTML = '';
|
||||
if (actionBtns) actionBtns.classList.add('hidden');
|
||||
npResetAmbientGlow();
|
||||
|
|
|
|||
Loading…
Reference in a new issue