Skip to content

Commit

Permalink
Increase spacefinder mobile minAbove distance to 250px (#1386)
Browse files Browse the repository at this point in the history
* Increase spacefinder mobile minAbove distance to 250px

* Changeset
arelra authored May 17, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 810c2d5 commit 9cad9fe
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/green-clouds-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@guardian/commercial': patch
---

Increase spacefinder mobile minAbove distance to 250px
2 changes: 1 addition & 1 deletion src/insert/spacefinder/article.ts
Original file line number Diff line number Diff line change
@@ -322,7 +322,7 @@ const addDesktopRightRailAds = (fillSlot: FillAdSlot): Promise<boolean> => {
};

const addMobileInlineAds = (fillSlot: FillAdSlot): Promise<boolean> => {
const minDistanceFromArticleTop = 200;
const minDistanceFromArticleTop = 250;

const ignoreList = `:not(p):not(h2):not(hr):not(.${adSlotContainerClass}):not(#sign-in-gate):not([data-spacefinder-type$="NumberedTitleBlockElement"])`;

0 comments on commit 9cad9fe

Please sign in to comment.