@@ -86,7 +86,10 @@ function ErrorFallback({error, resetErrorBoundary}) {
86
86
87
87
const MemoizedCodeMirror = memo ( ( props ) => (
88
88
< ErrorBoundary FallbackComponent = { ErrorFallback } >
89
- < CodeMirror { ...props } />
89
+ < CodeMirror
90
+ { ...props }
91
+ elementProps = { { className : 'playground-editor-code-mirror' } }
92
+ />
90
93
</ ErrorBoundary >
91
94
) )
92
95
@@ -130,7 +133,7 @@ export function Editor({children}) {
130
133
131
134
return (
132
135
< div >
133
- < Tabs className = "frame" >
136
+ < Tabs className = "frame frame-resizeable " >
134
137
< TabList className = "frame-tab-bar frame-tab-bar-scroll" >
135
138
< Tab
136
139
className = "frame-tab-item frame-tab-item-dark"
@@ -146,7 +149,7 @@ export function Editor({children}) {
146
149
</ Tab >
147
150
</ TabList >
148
151
< TabPanel >
149
- < div className = "frame-body frame-body-box-fixed-height " >
152
+ < div className = "frame-body" >
150
153
< noscript >
151
154
< pre >
152
155
< code className = "hljs language-md" >
@@ -161,8 +164,8 @@ export function Editor({children}) {
161
164
/>
162
165
</ div >
163
166
</ TabPanel >
164
- < TabPanel >
165
- < form className = "frame-body frame-body-box frame-body-box-fixed-height " >
167
+ < TabPanel className = "tab-panel-scrollable playground-editor-options-tab-panel" >
168
+ < form className = "frame-body frame-body-box" >
166
169
< label >
167
170
< input
168
171
checked = { state . gfm }
@@ -202,7 +205,7 @@ export function Editor({children}) {
202
205
</ TabPanel >
203
206
</ Tabs >
204
207
205
- < Tabs className = "frame" >
208
+ < Tabs className = "frame frame-resizeable " >
206
209
< TabList className = "frame-tab-bar frame-tab-bar-scroll" >
207
210
{ [
208
211
'Run' ,
@@ -238,16 +241,16 @@ export function Editor({children}) {
238
241
} ) }
239
242
</ TabList >
240
243
241
- < TabPanel >
244
+ < TabPanel className = "tab-panel-scrollable" >
242
245
< noscript > Enable JavaScript for the rendered result.</ noscript >
243
- < div className = "frame-body frame-body-box-fixed-height frame-body-box " >
246
+ < div className = "frame-body frame-body-box" >
244
247
< ErrorBoundary FallbackComponent = { ErrorFallback } >
245
248
{ state . file && state . file . result ? < Preview /> : null }
246
249
</ ErrorBoundary >
247
250
</ div >
248
251
</ TabPanel >
249
252
< TabPanel >
250
- < div className = "frame-body frame-body-box-fixed-height " >
253
+ < div className = "frame-body" >
251
254
{ state . file ? (
252
255
stats . fatal ? (
253
256
< pre >
@@ -267,7 +270,7 @@ export function Editor({children}) {
267
270
</ div >
268
271
</ TabPanel >
269
272
< TabPanel >
270
- < div className = "frame-body frame-body-box-fixed-height " >
273
+ < div className = "frame-body" >
271
274
{ state . file && state . file . data . mdast ? (
272
275
< pre >
273
276
< code className = "hljs language-js" >
@@ -284,7 +287,7 @@ export function Editor({children}) {
284
287
</ div >
285
288
</ TabPanel >
286
289
< TabPanel >
287
- < div className = "frame-body frame-body-box-fixed-height " >
290
+ < div className = "frame-body" >
288
291
{ state . file && state . file . data . hast ? (
289
292
< pre >
290
293
< code className = "hljs language-js" >
@@ -301,7 +304,7 @@ export function Editor({children}) {
301
304
</ div >
302
305
</ TabPanel >
303
306
< TabPanel >
304
- < div className = "frame-body frame-body-box-fixed-height " >
307
+ < div className = "frame-body" >
305
308
{ state . file && state . file . data . esast ? (
306
309
< pre >
307
310
< code className = "hljs language-js" >
1 commit comments
vercel[bot] commentedon May 17, 2023
Successfully deployed to the following URLs:
mdx – ./
v2.mdxjs.com
mdx-mdx.vercel.app
mdx-git-main-mdx.vercel.app
mdxjs.com