From c5c884f01f7f95469b9a6262eeb11b4d11c8a0f9 Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Sat, 4 Oct 2025 22:23:34 -0700 Subject: [PATCH] Update script.js --- webui/static/script.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/webui/static/script.js b/webui/static/script.js index a926c357..43dfc079 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -10164,6 +10164,9 @@ async function openDownloadMissingModalForTidal(virtualPlaylistId, playlistName, function initializeSyncPage() { // Logic for tab switching const tabButtons = document.querySelectorAll('.sync-tab-button'); + const syncSidebar = document.querySelector('.sync-sidebar'); + const syncContentArea = document.querySelector('.sync-content-area'); + tabButtons.forEach(button => { button.addEventListener('click', () => { const tabId = button.dataset.tab; @@ -10177,6 +10180,17 @@ function initializeSyncPage() { content.classList.remove('active'); }); document.getElementById(`${tabId}-tab-content`).classList.add('active'); + + // Show/hide sidebar based on active tab + if (syncSidebar && syncContentArea) { + if (tabId === 'spotify') { + syncSidebar.style.display = ''; + syncContentArea.style.gridTemplateColumns = '2.5fr 0.75fr'; + } else { + syncSidebar.style.display = 'none'; + syncContentArea.style.gridTemplateColumns = '1fr'; + } + } }); });