Browse Source

[Beta] Fix sticky sandboxes

main
Dan Abramov 2 years ago
parent
commit
acc8dcf9a3
  1. 1
      beta/src/components/MDX/Sandpack/SandpackRoot.tsx
  2. 1
      beta/src/styles/sandpack.css

1
beta/src/components/MDX/Sandpack/SandpackRoot.tsx

@ -74,7 +74,6 @@ function SandpackRoot(props: SandpackProps) {
hidden: true, hidden: true,
}; };
debugger;
return ( return (
<div className="sandpack sandpack--playground sandbox my-8"> <div className="sandpack sandpack--playground sandbox my-8">
<SandpackProvider <SandpackProvider

1
beta/src/styles/sandpack.css

@ -259,6 +259,7 @@ html.dark .sandpack--playground .sp-overlay {
.sp-layout { .sp-layout {
min-height: 216px; min-height: 216px;
overflow: initial !important;
} }
.sp-layout > .sp-stack:nth-child(1) { .sp-layout > .sp-stack:nth-child(1) {

Loading…
Cancel
Save