Skip to content

Commit 8eab8ff

Browse files
committed
docs: cap height of artificially-slow example output (#8486)
1 parent b4610fb commit 8eab8ff

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

src/content/reference/react/useDeferredValue.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,8 @@ export default SlowList;
705705

706706
```css
707707
.items {
708+
max-height: 1200px;
709+
overflow-y: auto;
708710
padding: 0;
709711
}
710712

@@ -782,6 +784,8 @@ export default SlowList;
782784

783785
```css
784786
.items {
787+
max-height: 1200px;
788+
overflow-y: auto;
785789
padding: 0;
786790
}
787791

src/content/reference/react/useTransition.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,11 @@ export default function ContactTab() {
733733
```
734734

735735
```css
736+
.items {
737+
max-height: 1200px;
738+
overflow-y: auto;
739+
}
740+
736741
button { margin-right: 10px }
737742
b { display: inline-block; margin-right: 10px; }
738743
.pending { color: #777; }
@@ -888,6 +893,11 @@ export default function ContactTab() {
888893
```
889894
890895
```css
896+
.items {
897+
max-height: 1200px;
898+
overflow-y: auto;
899+
}
900+
891901
button { margin-right: 10px }
892902
b { display: inline-block; margin-right: 10px; }
893903
.pending { color: #777; }
@@ -1046,6 +1056,11 @@ async function getPosts() {
10461056
```
10471057
10481058
```css
1059+
.items {
1060+
max-height: 1200px;
1061+
overflow-y: auto;
1062+
}
1063+
10491064
button { margin-right: 10px }
10501065
b { display: inline-block; margin-right: 10px; }
10511066
.pending { color: #777; }
@@ -1210,6 +1225,11 @@ async function getPosts() {
12101225
```
12111226
12121227
```css
1228+
.items {
1229+
max-height: 1200px;
1230+
overflow-y: auto;
1231+
}
1232+
12131233
button { margin-right: 10px }
12141234
b { display: inline-block; margin-right: 10px; }
12151235
.pending { color: #777; }

0 commit comments

Comments
 (0)