Home start page with shelves for recent, new, most played and playlists

This commit is contained in:
Christian
2026-11-18 22:31:16 -05:00
parent 93db117243
commit c4e3be84d3
5 changed files with 93 additions and 6 deletions
+2 -2
View File
@@ -421,10 +421,10 @@ function bindShell() {
}
function go(view) {
if (state.view === view) return;
$$(".nav-item[data-nav]").forEach((b) => b.dataset.nav === view ? b.setAttribute("aria-current", "page") : b.removeAttribute("aria-current"));
if (state.view === view) return markLibNav();
state.view = view;
$$(".view").forEach((v) => (v.hidden = v.dataset.view !== view));
$$(".nav-item[data-nav]").forEach((b) => b.dataset.nav === view ? b.setAttribute("aria-current", "page") : b.removeAttribute("aria-current"));
closeSaveMenu();
closeMenus();
if (view !== "library") closeDrawers();