From 3147b4e48a635a9b79abf69baf59ea11c4517012 Mon Sep 17 00:00:00 2001 From: primal Date: Fri, 30 Jan 2026 17:06:24 -0500 Subject: [PATCH] v56: standardize font sizes to match domain name --- static/dashboard.js | 18 +++++++++--------- templates.go | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/static/dashboard.js b/static/dashboard.js index 7c459aa..1598a5f 100644 --- a/static/dashboard.js +++ b/static/dashboard.js @@ -137,7 +137,7 @@ function initDashboard() { let html = ''; items.forEach(item => { const date = item.pub_date ? new Date(item.pub_date).toLocaleDateString() : ''; - html += `
`; + html += `
`; html += `${escapeHtml(date)}`; if (item.link) { html += `${escapeHtml(item.title || item.link)}`; @@ -236,7 +236,7 @@ function initDashboard() { // Spacer (clickable to toggle feeds) - uses   to ensure clickable area if (d.last_error) { - html += `${escapeHtml(d.last_error)}`; + html += `${escapeHtml(d.last_error)}`; } else { html += ' '; } @@ -258,24 +258,24 @@ function initDashboard() { const feedStatus = f.publish_status || 'hold'; html += `
`; - html += `
`; + html += `
`; // Language indicator (fixed width) const lang = f.language || ''; - html += `${escapeHtml(lang)}`; + html += `${escapeHtml(lang)}`; // Feed publish status buttons (pass/hold/skip) html += renderStatusBtns(feedStatus, 'feed', f.url, f.status); // Feed crawl status (active/error/dead) const statusColor = f.status === 'active' ? '#484' : f.status === 'error' ? '#a66' : '#666'; - html += `${escapeHtml(f.status || 'active')}`; + html += `${escapeHtml(f.status || 'active')}`; // Item count if > 0 if (f.item_count > 0) { - html += `${commaFormat(f.item_count)}`; + html += `${commaFormat(f.item_count)}`; } else { - html += ``; + html += ``; } // Feed path (URL without domain) - click to toggle feed info @@ -284,7 +284,7 @@ function initDashboard() { const urlObj = new URL(f.url.startsWith('http') ? f.url : 'https://' + f.url); feedPath = urlObj.pathname + urlObj.search; } catch (e) {} - html += `${escapeHtml(feedPath)}`; + html += `${escapeHtml(feedPath)}`; // Feed title - click to toggle items if (f.title) { @@ -296,7 +296,7 @@ function initDashboard() { html += '
'; // Feed info section (hidden by default) - html += ''; + html += ''; // Feed items section (shown by default) html += '
'; diff --git a/templates.go b/templates.go index b191285..542e802 100644 --- a/templates.go +++ b/templates.go @@ -534,7 +534,7 @@ const dashboardHTML = `
-
v55
+
v56
Last updated: {{.UpdatedAt.Format "2006-01-02 15:04:05"}}