From 92edaa9da4081f89d97c7e4788ca4f3843bf43d5 Mon Sep 17 00:00:00 2001 From: Honey Date: Tue, 19 May 2026 00:03:20 +0200 Subject: [PATCH] feat: show album above artist in bottom bar; close ctx menu on scroll - Player bar sub-line now shows album (clickable) on first row, artist below - Context menu now closes on scroll and touchmove (was staying open on mobile) Co-Authored-By: Claude Sonnet 4.6 --- index.html | 5 ++++- src/ui.js | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 6799b12..9b44cd2 100644 --- a/index.html +++ b/index.html @@ -410,8 +410,11 @@ +
+ +
- โ€” ยท + โ€”
๐Ÿ”€ Shuffle diff --git a/src/ui.js b/src/ui.js index 7d7dfbf..0c719c2 100644 --- a/src/ui.js +++ b/src/ui.js @@ -158,6 +158,8 @@ export function hideCtxMenu() { document.addEventListener('click', e => { if(!document.getElementById('ctx-menu').contains(e.target)) hideCtxMenu(); }); +document.addEventListener('scroll', () => hideCtxMenu(), { passive: true, capture: true }); +document.addEventListener('touchmove', () => hideCtxMenu(), { passive: true, capture: true }); document.addEventListener('keydown', e => { if(e.key==='Escape') hideCtxMenu(); }); // โ”€โ”€โ”€ PLAYLIST MODAL (Add to / Create) โ”€โ”€โ”€