Hide music ticker when nothing is playing

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ltadeu6 2026-06-07 09:30:38 -03:00
parent 2ee2470089
commit b2df95ed10
No known key found for this signature in database
GPG key ID: FB9FDAB6B6F3418D

View file

@ -132,6 +132,8 @@ html, body {
pointer-events: none;
max-width: 80vw;
overflow: hidden;
opacity: 0;
transition: opacity 0.8s;
}
.music-icon {
color: #ff44aa;
@ -941,7 +943,8 @@ function updateMusic(artist, title) {
: (title || artist || '— —');
const playing = !!(artist || title);
isPlaying = playing;
document.querySelector('.robot-wrap').style.opacity = playing ? '1' : '0';
document.querySelector('.robot-wrap').style.opacity = playing ? '1' : '0';
document.querySelector('.music-ticker').style.opacity = playing ? '1' : '0';
if (el.textContent === text) return;
el.textContent = text;
if (playing) pickSkeleton();