Skip to content

Commit

Permalink
fix: layout issue with subscriptions list during search
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ribeiro committed Nov 17, 2024
1 parent c1d24ed commit 5160071
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,9 @@ function searchSubscriptions() {
subscriptions.forEach(subscription => {
const name = subscription.getAttribute('data-name').toLowerCase();
if (!name.includes(searchTerm)) {
subscription.classList.add("hide");
subscription.parentElement.classList.add("hide");
} else {
subscription.classList.remove("hide");
subscription.parentElement.classList.remove("hide");
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ button.mobile-action-renew {
transition: transform 0.2s;
}

.subscription.hide {
.subscription-container.hide {
display: none;
}

Expand Down

0 comments on commit 5160071

Please sign in to comment.