Skip to content

Commit d5fc755

Browse files
authored
Fix edit panel not fully hidden (onlook-dev#1695)
1 parent 3098097 commit d5fc755

File tree

1 file changed

+7
-5
lines changed
  • apps/studio/src/routes/editor/EditPanel

1 file changed

+7
-5
lines changed

apps/studio/src/routes/editor/EditPanel/index.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,12 @@ export const EditPanel = observer(() => {
220220
}
221221

222222
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+
>
224229
{isDevPanelOpen && (
225230
<ResizablePanel
226231
side="right"
@@ -231,10 +236,7 @@ export const EditPanel = observer(() => {
231236
>
232237
<div
233238
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"
238240
>
239241
<div
240242
className={cn(

0 commit comments

Comments
 (0)