js,css tweaks
This commit is contained in:
parent
29846aee3d
commit
3fbd14191a
@ -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;
|
||||||
@ -384,4 +384,4 @@ button:disabled {
|
|||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
background-color: rgba(244, 63, 63, 0.1);
|
background-color: rgba(244, 63, 63, 0.1);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
@ -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() {
|
||||||
@ -210,4 +206,4 @@ confirmButton.addEventListener('click', async () => {
|
|||||||
console.error('Add feed failed:', error);
|
console.error('Add feed failed:', error);
|
||||||
showError('An error occurred. Please try again.');
|
showError('An error occurred. Please try again.');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user