mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-25 23:05:23 +00:00
Small fixes
This commit is contained in:
@@ -88,6 +88,10 @@ export function Preview({
|
||||
}
|
||||
}
|
||||
|
||||
if (rawError != null && rawError.title === 'Runtime Exception') {
|
||||
rawError.title = 'Runtime Error';
|
||||
}
|
||||
|
||||
// It changes too fast, causing flicker.
|
||||
const error = useDebounced(rawError);
|
||||
|
||||
@@ -179,7 +183,7 @@ export function Preview({
|
||||
: isExpanded
|
||||
? 'sticky'
|
||||
: undefined,
|
||||
top: isExpanded ? '4rem' : undefined,
|
||||
top: isExpanded ? '2rem' : undefined,
|
||||
}}>
|
||||
<iframe
|
||||
ref={iframeRef}
|
||||
|
||||
@@ -79,6 +79,7 @@ html.dark .sp-wrapper {
|
||||
|
||||
border-bottom-left-radius: 0.5rem;
|
||||
border-bottom-right-radius: 0.5rem;
|
||||
overflow: initial;
|
||||
}
|
||||
@media screen and (max-width: 768px) {
|
||||
.sp-layout > .sp-stack {
|
||||
@@ -259,7 +260,6 @@ html.dark .sandpack--playground .sp-overlay {
|
||||
|
||||
.sp-layout {
|
||||
min-height: 216px;
|
||||
overflow: initial !important;
|
||||
}
|
||||
|
||||
.sp-layout > .sp-stack:nth-child(1) {
|
||||
|
||||
Reference in New Issue
Block a user