js,css tweaks

This commit is contained in:
Greg Shuflin 2025-02-02 14:13:02 -08:00
parent 29846aee3d
commit 3fbd14191a
2 changed files with 4 additions and 8 deletions

View File

@ -295,7 +295,7 @@ button:disabled {
.feed-name {
display: block;
padding: 0.75rem;
padding: 0.15rem;
margin: 0.25rem 0;
color: var(--text-color);
text-decoration: none;
@ -384,4 +384,4 @@ button:disabled {
padding: 1rem;
background-color: rgba(244, 63, 63, 0.1);
border-radius: 4px;
}
}

View File

@ -30,9 +30,6 @@ document.addEventListener('click', (e) => {
});
function renderFeedItem(feed) {
const container = document.createElement('div');
container.style.position = 'relative';
const name = document.createElement('span');
name.className = 'feed-name';
name.textContent = feed.name;
@ -79,8 +76,7 @@ function renderFeedItem(feed) {
menu.appendChild(deleteItem);
name.appendChild(menuButton);
name.appendChild(menu);
container.appendChild(name);
return container;
return name;
}
async function handleFeeds() {
@ -210,4 +206,4 @@ confirmButton.addEventListener('click', async () => {
console.error('Add feed failed:', error);
showError('An error occurred. Please try again.');
}
});
});