Compare commits
2 Commits
c7c3fa1906
...
8a488ec209
Author | SHA1 | Date | |
---|---|---|---|
|
8a488ec209 | ||
|
65520644ee |
@ -67,6 +67,18 @@
|
||||
body.with-sidebar {
|
||||
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 {
|
||||
|
@ -207,6 +207,12 @@ function openFeed(feed) {
|
||||
topBarTitle.innerHTML = `RSS Reader <span class="feed-title-separator">-</span> ${feed.name}`;
|
||||
// Update the browser document title
|
||||
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 {
|
||||
console.error('Failed to poll feed:', response.status);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user