Update top bar

This commit is contained in:
Greg Shuflin 2025-02-05 01:07:26 -08:00
parent 086f92903b
commit 3509d889d5
2 changed files with 10 additions and 0 deletions

View File

@ -151,6 +151,11 @@ body.with-sidebar {
transform: translateX(-50%);
}
.feed-title-separator {
color: var(--text-muted);
margin: 0 0.5rem;
}
.top-bar-buttons {
display: flex;
gap: 1rem;

View File

@ -128,6 +128,11 @@ function openFeed(feed) {
const data = await response.json();
console.log('Feed poll response:', data);
renderFeedEntries(data.entries);
// Update the top bar title
const topBarTitle = document.querySelector('.top-bar-title');
topBarTitle.innerHTML = `RSS Reader <span class="feed-title-separator">-</span> ${feed.name}`;
// Update the browser document title
document.title = `RSS Reader - ${feed.name}`;
} else {
console.error('Failed to poll feed:', response.status);
}