From 79b878c5464a939896d7569cdc57bcaa76ea7a99 Mon Sep 17 00:00:00 2001 From: Honey Date: Thu, 21 May 2026 11:27:53 +0200 Subject: [PATCH] fix: stay on queue tab when selecting song from NP queue view Co-Authored-By: Claude Sonnet 4.6 --- src/nowplaying.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nowplaying.js b/src/nowplaying.js index 3c59190..ac27f6a 100644 --- a/src/nowplaying.js +++ b/src/nowplaying.js @@ -240,7 +240,7 @@ export function renderNpQueue() { item.className = 'np-queue-item' + (i===S.qIdx ? ' nq-active' : ''); const cv = coverUrl(s.coverArt, 128); item.innerHTML = `
${i+1}
${cv ? `` : '♪'}
${esc(s.title)}
${esc(s.artist||'')}
`; - item.onclick = () => { S.qIdx=i; playCurrent(); switchNpTab('player'); }; + item.onclick = () => { S.qIdx=i; playCurrent(); renderNpQueue(); }; el.appendChild(item); }); el.querySelector('.nq-active')?.scrollIntoView({block:'nearest'});