File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
web/src/modules/shared/components/client/ads Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -58,14 +58,19 @@ const AdTemplate = ({
58
58
}
59
59
} , [ ] ) ;
60
60
61
- if ( ! pubId ) {
62
- return 'AdSense Client ID is not set' ;
63
- }
61
+ const InfoText = ! pubId
62
+ ? ( ) => (
63
+ < p className = 'text-center my-auto text-xs text-zinc-500 m-4' >
64
+ AdSense Client ID is not set
65
+ </ p >
66
+ )
67
+ : ( ) => null ;
64
68
65
69
return isHidden ? (
66
70
< div className = { cn ( className , hiddenClassName ) } > </ div >
67
71
) : (
68
72
< div className = { cn ( className , isHidden ? hiddenClassName : '' ) } >
73
+ < InfoText />
69
74
< Script
70
75
async
71
76
src = { `https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${ pubId } ` }
@@ -114,7 +119,7 @@ export const SideRailAdSlot = ({ className }: { className?: string }) => {
114
119
// height with this class: "max-h-[calc(100vh-9rem)]", but then the container doesn't fit to
115
120
// the ad content height, always occupying the full viewport height instead. So we use 'max-w-fit'
116
121
// to cap the max height to that of the ad.
117
- 'flex-0 sticky mb-8 top-24 min-h-96 max-h-fit hidden xl:block w-36 min-w-36 bg-zinc-800/50 rounded-xl' ,
122
+ 'flex-0 sticky mb-8 top-24 p-2 min-h-96 max-h-fit hidden xl:block w-36 min-w-36 bg-zinc-800/50 rounded-xl' ,
118
123
className ,
119
124
) }
120
125
adSlot = '4995642586'
You can’t perform that action at this time.
0 commit comments