v45: Auto-expand feed details in d:feeds mode

This commit is contained in:
primal
2026-01-30 16:23:03 -05:00
parent f59e7dcbc3
commit cf34db1e6c
2 changed files with 16 additions and 1 deletions
+15
View File
@@ -502,6 +502,21 @@ function initDashboard() {
attachDomainHandlers(container);
applyTLDFilter();
// Auto-expand feed details in d:feeds mode
if (statusFilter === 'feeds') {
container.querySelectorAll('.inline-feed-block').forEach(feedBlock => {
const detailDiv = feedBlock.querySelector('.feed-detail');
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);
}
}
});
}
offset += domains.length;
if (domains.length < limit) {
+1 -1
View File
@@ -534,7 +534,7 @@ const dashboardHTML = `<!DOCTYPE html>
<div id="output"></div>
</div>
<div style="color: #333; font-size: 11px; margin-top: 10px;">v44</div>
<div style="color: #333; font-size: 11px; margin-top: 10px;">v45</div>
<div class="updated" id="updatedAt">Last updated: {{.UpdatedAt.Format "2006-01-02 15:04:05"}}</div>
</body>