Compare commits

...

2 Commits

Author SHA1 Message Date
Greg Shuflin
8a488ec209 Auto close sidebar on mobile 2025-02-06 02:24:26 -08:00
Greg Shuflin
65520644ee fix scroll on mobile 2025-02-06 02:21:56 -08:00
2 changed files with 18 additions and 0 deletions

View File

@ -67,6 +67,18 @@
body.with-sidebar { body.with-sidebar {
display: block; display: block;
} }
.main-content-area {
height: 100vh;
display: flex;
flex-direction: column;
}
#main-content {
flex: 1;
overflow-y: auto;
-webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
}
} }
.sidebar h2 { .sidebar h2 {

View File

@ -207,6 +207,12 @@ function openFeed(feed) {
topBarTitle.innerHTML = `RSS Reader <span class="feed-title-separator">-</span> ${feed.name}`; topBarTitle.innerHTML = `RSS Reader <span class="feed-title-separator">-</span> ${feed.name}`;
// Update the browser document title // Update the browser document title
document.title = `RSS Reader - ${feed.name}`; document.title = `RSS Reader - ${feed.name}`;
// Close sidebar if on mobile
if (window.innerWidth <= 768) {
const sidebar = document.getElementById('sidebar');
sidebar.classList.remove('active');
}
} else { } else {
console.error('Failed to poll feed:', response.status); console.error('Failed to poll feed:', response.status);
} }