Skip to content

Commit a17ca03

Browse files
committed
Fix Google Adsense showing bug
1 parent 9490c45 commit a17ca03

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

client/js/repos/ReposPage.js

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,15 @@ class ReposPage extends React.Component {
279279

280280
return (
281281
<div className="flex-column layout-column-start-center" style={{ width: '100%' }}>
282-
<ins className="adsbygoogle"
283-
style={{ display: 'block' }}
284-
data-ad-client="ca-pub-1240343082911496"
285-
data-ad-slot="4365785532"
286-
data-ad-format="auto"
287-
/>
282+
<div style={{ width: 480 }}>
283+
<ins className="adsbygoogle"
284+
style={{ display: 'block' }}
285+
data-ad-client="ca-pub-1240343082911496"
286+
data-ad-slot="4365785532"
287+
data-ad-format="auto"
288+
/>
289+
</div>
290+
288291
<div>
289292
<a href="https://grimmer.netlify.com/">About me</a>
290293
</div>
@@ -326,12 +329,14 @@ class ReposPage extends React.Component {
326329

327330
return (
328331
<div className="flex-column layout-column-start-center" style={{ width: '100%' }}>
329-
<ins className="adsbygoogle"
330-
style={{ display: 'block' }}
331-
data-ad-client="ca-pub-1240343082911496"
332-
data-ad-slot="4365785532"
333-
data-ad-format="auto"
334-
/>
332+
<div style={{ width: 480 }}>
333+
<ins className="adsbygoogle"
334+
style={{ display: 'block' }}
335+
data-ad-client="ca-pub-1240343082911496"
336+
data-ad-slot="4365785532"
337+
data-ad-format="auto"
338+
/>
339+
</div>
335340
<div className="loading-text">
336341
{statusStr}
337342
</div>

0 commit comments

Comments
 (0)