Browse Source

[Beta] Fix sticky sandboxes

main
Dan Abramov 2 years ago
parent
commit
8f8bcb93e0
  1. 6
      beta/src/components/MDX/MDXComponents.tsx
  2. 1
      beta/src/styles/index.css

6
beta/src/components/MDX/MDXComponents.tsx

@ -365,7 +365,11 @@ export const MDXComponents = {
return children;
},
MaxWidth({children}: {children: any}) {
return <div className="max-w-4xl ml-0 2xl:mx-auto">{children}</div>;
return (
<div className="max-w-4xl ml-0 2xl:mx-auto overflow-x-hidden">
{children}
</div>
);
},
Gotcha,
Wip,

1
beta/src/styles/index.css

@ -74,7 +74,6 @@
body {
padding: 0;
margin: 0;
overflow-x: hidden;
}
/* Start purging... */

Loading…
Cancel
Save