Skip to content

Commit

Permalink
Note it's a hack
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher committed Dec 11, 2024
1 parent 3b7e92e commit a4ef3ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ethicalads.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export class EthicalAdsAddon extends AddonBase {
// Use fixed footer for smaller widths, but not mobile
placement.setAttribute("data-ea-type", "text");
placement.setAttribute("data-ea-style", "fixedfooter");
// TODO: THIS IS A HACK. IS THERE A BETTER WAY?
// Add margin to the bottom to avoid hiding bottom of content
const root_node = document.querySelector(docTool.getRootSelector());
root_node.style.marginBottom = "2em";
Expand Down

0 comments on commit a4ef3ab

Please sign in to comment.