Skip to content

Commit 0df8b05

Browse files
committed
fix: hide unfilled ad slots
1 parent 5c0a160 commit 0df8b05

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

web/src/app/globals.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,12 @@ body {
150150
transform: translatex(100%) skewy(-45deg);
151151
top: -4px;
152152
}
153+
154+
155+
/************** Google AdSense **************/
156+
157+
/* Hide unfilled ads */
158+
/* https://support.google.com/adsense/answer/10762946?hl=en */
159+
ins.adsbygoogle[data-ad-status="unfilled"] {
160+
display: none !important;
161+
}

web/src/modules/shared/components/client/ads/AdSlots.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export const MultiplexAdSlot = ({ className }: { className?: string }) => {
152152
return (
153153
<AdTemplate
154154
className={cn(
155-
'relative rounded-xl bg-zinc-800/50 p-2 my-8 h-auto min-h-32 w-full min-w-64 text-sm text-zinc-400',
155+
'relative rounded-xl bg-zinc-800/50 my-8 h-auto min-h-32 w-full min-w-64 text-sm text-zinc-400',
156156
className,
157157
)}
158158
adSlot='6673081563'

0 commit comments

Comments
 (0)