Skip to content

Commit dea7fc2

Browse files
committed
docs: prevent layout from moving during loading
1 parent 5757468 commit dea7fc2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/docs/src/components/Ads.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const Ads: FC<AdsProps> = ({ code, location, placement }) => {
1919
}
2020
}, [location])
2121

22-
return <div ref={ref} />
22+
return <div className="carbonads-wrapper" ref={ref} />
2323
}
2424

2525
Ads.displayName = 'Ads'

packages/docs/src/styles/_ads.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@
44
// Carbon ads
55
//
66

7+
.carbonads-wrapper {
8+
min-height: 130px;
9+
margin: 2rem 0;
10+
}
11+
712
#carbonads {
813
position: static;
914
display: block;
1015
max-width: 400px;
1116
padding: 15px 15px 15px 160px;
12-
margin: 2rem 0;
1317
overflow: hidden;
1418
@include font-size(.8125rem);
1519
line-height: 1.4;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy