Skip to content

Commit

Permalink
Merge pull request #514 from aug-dev/pa/502/fix-button-overlap-ddg
Browse files Browse the repository at this point in the history
fix(ddg): fix button overlap on DDG card carousel in certain scenarios
  • Loading branch information
iorate committed Jul 28, 2024
2 parents 18af182 + eef17ad commit 7eeefcb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/scripts/search-engines/duckduckgo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,13 @@ const serpHandler = handleSerp({
},
});
// Increase card size to include the "Block this site" button:
actionRoot.closest(".module--carousel__items")?.classList.add(
actionRoot.closest(".module--carousel")?.classList.add(
css({
height: "320px",
"& > .module--carousel__item": {
height: "unset !important",
"& .module--carousel__items": {
height: "320px",
},
"& .module--carousel__item": {
height: "300px",
},
"& .module--carousel__footer": {
Expand Down

0 comments on commit 7eeefcb

Please sign in to comment.