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 { .feed-name {
display: block; display: block;
padding: 0.75rem; padding: 0.15rem;
margin: 0.25rem 0; margin: 0.25rem 0;
color: var(--text-color); color: var(--text-color);
text-decoration: none; text-decoration: none;

View File

@ -30,9 +30,6 @@ document.addEventListener('click', (e) => {
}); });
function renderFeedItem(feed) { function renderFeedItem(feed) {
const container = document.createElement('div');
container.style.position = 'relative';
const name = document.createElement('span'); const name = document.createElement('span');
name.className = 'feed-name'; name.className = 'feed-name';
name.textContent = feed.name; name.textContent = feed.name;
@ -79,8 +76,7 @@ function renderFeedItem(feed) {
menu.appendChild(deleteItem); menu.appendChild(deleteItem);
name.appendChild(menuButton); name.appendChild(menuButton);
name.appendChild(menu); name.appendChild(menu);
container.appendChild(name); return name;
return container;
} }
async function handleFeeds() { async function handleFeeds() {