From c43f938afe71219d2cf06af20a0b049e8fcbf6d5 Mon Sep 17 00:00:00 2001 From: nessi Date: Thu, 13 Aug 2026 10:57:24 +0200 Subject: [PATCH] feat: add collapsible series styling and auto-collapse on load Add CSS styling for series details elements with border, rounded corners, and dark background. Initialize all series as collapsed by default on page load to improve UI organization for large series lists. --- templates/index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/index.html b/templates/index.html index 06a0aea..e41d24a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -25,3 +25,8 @@ function statusText(s){if(s.state==='running')return `Scan: ${s.done}/${s.total| const seenRunning={radarr:false,sonarr:false};async function poll(){try{const data=await (await fetch('/api/scan-status')).json();document.querySelector('#radarrStatus').textContent=statusText(data.radarr);const sonarr=document.querySelector('#sonarrStatus');if(sonarr)sonarr.textContent=statusText(data.sonarr);['radarr','sonarr'].forEach(source=>{if(data[source].state==='running')seenRunning[source]=true;if(seenRunning[source]&&['done','error'].includes(data[source].state)){seenRunning[source]=false;setTimeout(()=>location.reload(),700)}})}catch(e){} };setInterval(poll,1200);poll(); document.querySelector('#rescan').onclick=async()=>{const b=document.querySelector('#rescan');b.disabled=true;b.textContent='Scanne …';await fetch('/api/rescan?source='+(b.dataset.source||'radarr'),{method:'POST'});b.disabled=false;b.textContent='↻ Neu scannen';poll()}; + +