Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdea7fc2

Browse files
committed
docs: prevent layout from moving during loading
1 parent5757468 commitdea7fc2

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<divref={ref}/>
22+
return<divclassName="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:2rem0;
10+
}
11+
712
#carbonads {
813
position:static;
914
display:block;
1015
max-width:400px;
1116
padding:15px15px15px160px;
12-
margin:2rem0;
1317
overflow:hidden;
1418
@includefont-size(.8125rem);
1519
line-height:1.4;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp