Push outbrain below the Nag

This is a quick-fix without having to make the 2 components know about each other.

Ticket: 1165
This commit is contained in:
infinite-persistence 2022-03-21 23:40:05 +08:00 committed by Thomas Zarebczan
parent 52c15fc004
commit 67a822d536

View file

@ -26,6 +26,7 @@ export default function useAdOutbrain(hasPremiumPlus: boolean, isAuthenticated:
// Hide it immediately while we wait for ads to be filled. This prevents // Hide it immediately while we wait for ads to be filled. This prevents
// the invisible container from blocking our content. // the invisible container from blocking our content.
container.style.visibility = 'hidden'; container.style.visibility = 'hidden';
container.style.zIndex = '800'; // any value below $nag-z-index
// Restore visibility after confirming the ad is filled. If it is filled // Restore visibility after confirming the ad is filled. If it is filled
// after the stipulated time, well, no soup for you. // after the stipulated time, well, no soup for you.