|
@ -88,6 +88,10 @@ export function Preview({ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (rawError != null && rawError.title === 'Runtime Exception') { |
|
|
|
|
|
rawError.title = 'Runtime Error'; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// It changes too fast, causing flicker.
|
|
|
// It changes too fast, causing flicker.
|
|
|
const error = useDebounced(rawError); |
|
|
const error = useDebounced(rawError); |
|
|
|
|
|
|
|
@ -179,7 +183,7 @@ export function Preview({ |
|
|
: isExpanded |
|
|
: isExpanded |
|
|
? 'sticky' |
|
|
? 'sticky' |
|
|
: undefined, |
|
|
: undefined, |
|
|
top: isExpanded ? '4rem' : undefined, |
|
|
top: isExpanded ? '2rem' : undefined, |
|
|
}}> |
|
|
}}> |
|
|
<iframe |
|
|
<iframe |
|
|
ref={iframeRef} |
|
|
ref={iframeRef} |
|
|