Skip to content

Commit

Permalink
Fix layout toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchas116 committed Apr 30, 2023
1 parent 7318aed commit a67dc31
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/editor/src/views/App.tsx
Expand Up @@ -72,18 +72,18 @@ export const App = observer(function App() {
</div>
</div>
{viewportState.isSideBarsVisible &&
viewportState.layout === "threeColumn" ? (
<InspectorSideBar />
) : (
<div className="flex flex-col w-64">
<div className="flex-1 border-b border-macaron-separator">
<ScrollArea className="absolute left-0 top-0 w-full h-full">
<NodeTreeView />
</ScrollArea>
(viewportState.layout === "threeColumn" ? (
<InspectorSideBar />
) : (
<div className="flex flex-col w-64">
<div className="flex-1 border-b border-macaron-separator">
<ScrollArea className="absolute left-0 top-0 w-full h-full">
<NodeTreeView />
</ScrollArea>
</div>
<InspectorSideBar className="flex-[2_2_0%]" />
</div>
<InspectorSideBar className="flex-[2_2_0%]" />
</div>
)}
))}
</div>
</div>
<ContextMenu />
Expand Down

2 comments on commit a67dc31

@vercel
Copy link

@vercel vercel bot commented on a67dc31 Apr 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on a67dc31 Apr 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.