|
@@ -24,7 +24,6 @@ export const MainLayout: FC = () => {
|
|
|
isOpen: sidebarIsOpen,
|
|
isOpen: sidebarIsOpen,
|
|
|
setIsOpen: setSidebarIsOpen,
|
|
setIsOpen: setSidebarIsOpen,
|
|
|
panelRef: sidebarPanelRef,
|
|
panelRef: sidebarPanelRef,
|
|
|
- handleLayout: handleSidebarLayout,
|
|
|
|
|
togglePane: toggleSidebar,
|
|
togglePane: toggleSidebar,
|
|
|
handlePaneExpand: handleSidebarExpand,
|
|
handlePaneExpand: handleSidebarExpand,
|
|
|
handlePaneCollapse: handleSidebarCollapse,
|
|
handlePaneCollapse: handleSidebarCollapse,
|
|
@@ -35,7 +34,6 @@ export const MainLayout: FC = () => {
|
|
|
const {
|
|
const {
|
|
|
isOpen: chatIsOpen,
|
|
isOpen: chatIsOpen,
|
|
|
panelRef: chatPanelRef,
|
|
panelRef: chatPanelRef,
|
|
|
- handleLayout: handleChatLayout,
|
|
|
|
|
togglePane: toggleChat,
|
|
togglePane: toggleChat,
|
|
|
resizing: chatResizing,
|
|
resizing: chatResizing,
|
|
|
setResizing: setChatResizing,
|
|
setResizing: setChatResizing,
|
|
@@ -57,7 +55,6 @@ export const MainLayout: FC = () => {
|
|
|
<PanelGroup
|
|
<PanelGroup
|
|
|
autoSaveId="ide-outer-layout"
|
|
autoSaveId="ide-outer-layout"
|
|
|
direction="horizontal"
|
|
direction="horizontal"
|
|
|
- onLayout={handleSidebarLayout}
|
|
|
|
|
className={classNames({
|
|
className={classNames({
|
|
|
'ide-panel-group-resizing': sidebarResizing || chatResizing,
|
|
'ide-panel-group-resizing': sidebarResizing || chatResizing,
|
|
|
})}
|
|
})}
|
|
@@ -94,11 +91,7 @@ export const MainLayout: FC = () => {
|
|
|
</HorizontalResizeHandle>
|
|
</HorizontalResizeHandle>
|
|
|
|
|
|
|
|
<Panel id="panel-outer-main" order={2}>
|
|
<Panel id="panel-outer-main" order={2}>
|
|
|
- <PanelGroup
|
|
|
|
|
- autoSaveId="ide-inner-layout"
|
|
|
|
|
- direction="horizontal"
|
|
|
|
|
- onLayout={handleChatLayout}
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <PanelGroup autoSaveId="ide-inner-layout" direction="horizontal">
|
|
|
<Panel className="ide-react-panel" id="panel-main" order={1}>
|
|
<Panel className="ide-react-panel" id="panel-main" order={1}>
|
|
|
{view === 'history' ? (
|
|
{view === 'history' ? (
|
|
|
<HistoryProvider>
|
|
<HistoryProvider>
|