File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
apps/studio/src/routes/editor/EditPanel Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,12 @@ export const EditPanel = observer(() => {
220
220
}
221
221
222
222
return (
223
- < div className = "flex flex-row h-full" >
223
+ < div
224
+ className = { cn (
225
+ 'flex flex-row h-full' ,
226
+ editorEngine . mode === EditorMode . PREVIEW ? 'hidden' : 'visible' ,
227
+ ) }
228
+ >
224
229
{ isDevPanelOpen && (
225
230
< ResizablePanel
226
231
side = "right"
@@ -231,10 +236,7 @@ export const EditPanel = observer(() => {
231
236
>
232
237
< div
233
238
id = "dev-panel"
234
- className = { cn (
235
- 'rounded-tl-xl transition-width duration-300 opacity-100 bg-background/95 overflow-hidden h-full' ,
236
- editorEngine . mode === EditorMode . PREVIEW ? 'hidden' : 'visible' ,
237
- ) }
239
+ className = "rounded-tl-xl transition-width duration-300 opacity-100 bg-background/95 overflow-hidden h-full"
238
240
>
239
241
< div
240
242
className = { cn (
You can’t perform that action at this time.
0 commit comments