Skip to content

Commit

Permalink
Fixed layout on "Add feed" button
Browse files Browse the repository at this point in the history
  • Loading branch information
George Stone authored and George Stone committed Aug 20, 2024
1 parent 92e9ded commit bc2ab06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async function getSavedFeeds() {

if (!document.querySelector(".feed-item.add-feed")) {
let addFeedButton = document.createElement("button");
addFeedButton.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#e8eaed"><path d="M440-440H240q-17 0-28.5-11.5T200-480q0-17 11.5-28.5T240-520h200v-200q0-17 11.5-28.5T480-760q17 0 28.5 11.5T520-720v200h200q17 0 28.5 11.5T760-480q0 17-11.5 28.5T720-440H520v200q0 17-11.5 28.5T480-200q-17 0-28.5-11.5T440-240v-200Z"/></svg><span>Add feed</span>`;
addFeedButton.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#e8eaed"><path d="M440-440H240q-17 0-28.5-11.5T200-480q0-17 11.5-28.5T240-520h200v-200q0-17 11.5-28.5T480-760q17 0 28.5 11.5T520-720v200h200q17 0 28.5 11.5T760-480q0 17-11.5 28.5T720-440H520v200q0 17-11.5 28.5T480-200q-17 0-28.5-11.5T440-240v-200Z"/></svg><div class="spacer"></div><span>Add feed</span>`;
addFeedButton.className = "feed-item add-feed";
addFeedButton.addEventListener("click", addFeed);
document.querySelector(".feed-list").appendChild(addFeedButton);
Expand Down

0 comments on commit bc2ab06

Please sign in to comment.