Skip to content

Commit d44480c

Browse files
committed
Fixes glitch
1 parent a716348 commit d44480c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/containers/post/HorizontalAd.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function HorizontalAd({}: Props) {
3535
<Wrapper ref={ref}>
3636
<ins
3737
className="adsbygoogle"
38-
style={{ display: 'block' }}
38+
style={{ display: 'block', maxHeight: 400, width: '100%' }}
3939
data-ad-client="ca-pub-5574866530496701"
4040
data-ad-slot="8809887603"
4141
data-ad-format="auto"
@@ -47,12 +47,9 @@ function HorizontalAd({}: Props) {
4747
}
4848

4949
const Wrapper = styled.div`
50+
max-height: 400px;
5051
margin-top: 1.5rem;
5152
margin-bottom: 1.5rem;
52-
ins {
53-
max-height: 400px;
54-
width: 100%;
55-
}
5653
`;
5754

5855
export default HorizontalAd;

0 commit comments

Comments
 (0)