diff --git a/static/dashboard.js b/static/dashboard.js index 40fcd6c..7c459aa 100644 --- a/static/dashboard.js +++ b/static/dashboard.js @@ -640,20 +640,17 @@ function initDashboard() { // Auto-expand feeds in d:feeds mode if (statusFilter === 'feeds') { - // Show the domain-feeds containers + // Show the domain-feeds containers and load items container.querySelectorAll('.domain-feeds').forEach(feedsDiv => { feedsDiv.style.display = 'block'; }); - // Also expand feed details + // Load items for all feeds container.querySelectorAll('.inline-feed-block').forEach(feedBlock => { - const detailDiv = feedBlock.querySelector('.feed-detail'); + const itemsDiv = feedBlock.querySelector('.feed-items'); const feedUrl = feedBlock.dataset.url; - if (detailDiv && detailDiv.style.display === 'none') { - detailDiv.style.display = 'block'; - if (!detailDiv.dataset.loaded) { - detailDiv.dataset.loaded = 'true'; - loadFeedDetail(feedUrl, detailDiv); - } + if (itemsDiv && !itemsDiv.dataset.loaded) { + itemsDiv.dataset.loaded = 'true'; + loadFeedItems(feedUrl, itemsDiv); } }); } diff --git a/templates.go b/templates.go index 8e65dfa..726128c 100644 --- a/templates.go +++ b/templates.go @@ -534,7 +534,7 @@ const dashboardHTML = `
-