Skip to content

Commit 2c5fe68

Browse files
committed
fix activity iframe resize
1 parent 4b6b9d6 commit 2c5fe68

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/content/reference/react/Activity.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ async function getPosts() {
240240
setTimeout(resolve, 1000);
241241
});
242242
let posts = [];
243-
for (let i = 0; i < 500; i++) {
243+
for (let i = 0; i < 10; i++) {
244244
posts.push({
245245
id: i,
246246
title: 'Post #' + (i + 1)
@@ -251,6 +251,7 @@ async function getPosts() {
251251
```
252252

253253
```css
254+
body { height: 275px; }
254255
button { margin-right: 10px }
255256
b { display: inline-block; margin-right: 10px; }
256257
.pending { color: #777; }
@@ -431,7 +432,7 @@ async function getPosts() {
431432
setTimeout(resolve, 1000);
432433
});
433434
let posts = [];
434-
for (let i = 0; i < 500; i++) {
435+
for (let i = 0; i < 10; i++) {
435436
posts.push({
436437
id: i,
437438
title: 'Post #' + (i + 1)
@@ -442,6 +443,7 @@ async function getPosts() {
442443
```
443444

444445
```css
446+
body { height: 275px; }
445447
button { margin-right: 10px }
446448
b { display: inline-block; margin-right: 10px; }
447449
.pending { color: #777; }
@@ -641,7 +643,7 @@ async function getPosts() {
641643
setTimeout(resolve, 1000);
642644
});
643645
let posts = [];
644-
for (let i = 0; i < 500; i++) {
646+
for (let i = 0; i < 10; i++) {
645647
posts.push({
646648
id: i,
647649
title: 'Post #' + (i + 1)
@@ -652,6 +654,7 @@ async function getPosts() {
652654
```
653655

654656
```css
657+
body { height: 275px; }
655658
button { margin-right: 10px }
656659
b { display: inline-block; margin-right: 10px; }
657660
.pending { color: #777; }
@@ -831,7 +834,7 @@ async function getPosts() {
831834
setTimeout(resolve, 1000);
832835
});
833836
let posts = [];
834-
for (let i = 0; i < 500; i++) {
837+
for (let i = 0; i < 10; i++) {
835838
posts.push({
836839
id: i,
837840
title: 'Post #' + (i + 1)
@@ -842,6 +845,7 @@ async function getPosts() {
842845
```
843846

844847
```css
848+
body { height: 275px; }
845849
button { margin-right: 10px }
846850
b { display: inline-block; margin-right: 10px; }
847851
.pending { color: #777; }
@@ -940,6 +944,7 @@ let interval = setInterval(() => {
940944

941945

942946
```css
947+
body { height: 275px; }
943948
button { margin-right: 10px }
944949
b { display: inline-block; margin-right: 10px; }
945950
video { width: 300px; margin-top: 10px; }
@@ -1032,6 +1037,7 @@ export default function VideoChecker() {
10321037

10331038

10341039
```css
1040+
body { height: 275px; }
10351041
button { margin-right: 10px }
10361042
b { display: inline-block; margin-right: 10px; }
10371043
video { width: 300px; margin-top: 10px; }
@@ -1123,6 +1129,7 @@ export default function VideoChecker() {
11231129
```
11241130

11251131
```css
1132+
body { height: 275px; }
11261133
button { margin-right: 10px }
11271134
b { display: inline-block; margin-right: 10px; }
11281135
video { width: 300px; margin-top: 10px; }

0 commit comments

Comments
 (0)