Hide music ticker when nothing is playing
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
2ee2470089
commit
b2df95ed10
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue