Skip to content

Commit ad729ee

Browse files
TunaTuna
authored andcommitted
Fix slow demo preview height
1 parent 2639f36 commit ad729ee

2 files changed

Lines changed: 12 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
@@ -706,6 +706,8 @@ export default SlowList;
706706
```css
707707
.items {
708708
padding: 0;
709+
max-height: 300px;
710+
overflow: auto;
709711
}
710712

711713
.item {
@@ -783,6 +785,8 @@ export default SlowList;
783785
```css
784786
.items {
785787
padding: 0;
788+
max-height: 300px;
789+
overflow: auto;
786790
}
787791

788792
.item {

src/content/reference/react/useTransition.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,10 @@ export default function ContactTab() {
736736
button { margin-right: 10px }
737737
b { display: inline-block; margin-right: 10px; }
738738
.pending { color: #777; }
739+
.items {
740+
max-height: 300px;
741+
overflow: auto;
742+
}
739743
```
740744

741745
</Sandpack>
@@ -891,6 +895,10 @@ export default function ContactTab() {
891895
button { margin-right: 10px }
892896
b { display: inline-block; margin-right: 10px; }
893897
.pending { color: #777; }
898+
.items {
899+
max-height: 300px;
900+
overflow: auto;
901+
}
894902
```
895903
896904
</Sandpack>

0 commit comments

Comments
 (0)