File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,10 @@ export function Preview({
88
88
}
89
89
}
90
90
91
+ if ( rawError != null && rawError . title === 'Runtime Exception' ) {
92
+ rawError . title = 'Runtime Error' ;
93
+ }
94
+
91
95
// It changes too fast, causing flicker.
92
96
const error = useDebounced ( rawError ) ;
93
97
@@ -179,7 +183,7 @@ export function Preview({
179
183
: isExpanded
180
184
? 'sticky'
181
185
: undefined ,
182
- top : isExpanded ? '4rem ' : undefined ,
186
+ top : isExpanded ? '2rem ' : undefined ,
183
187
} } >
184
188
< iframe
185
189
ref = { iframeRef }
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ html.dark .sp-wrapper {
79
79
80
80
border-bottom-left-radius : 0.5rem ;
81
81
border-bottom-right-radius : 0.5rem ;
82
+ overflow : initial;
82
83
}
83
84
@media screen and (max-width : 768px ) {
84
85
.sp-layout > .sp-stack {
@@ -259,7 +260,6 @@ html.dark .sandpack--playground .sp-overlay {
259
260
260
261
.sp-layout {
261
262
min-height : 216px ;
262
- overflow : initial !important ;
263
263
}
264
264
265
265
.sp-layout > .sp-stack : nth-child (1 ) {
You can’t perform that action at this time.
0 commit comments