File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ const MainPageContent: React.FC = () => {
6666 const { setShowEditor, showEditor } = useContentContext ( )
6767 const { getShortcutDescription } = useAppShortcuts ( )
6868
69+ const panelGroupKey = `${ showChatbot } -${ showEditor } -${ ! ! currentlyOpenFilePath } `
70+
6971 return (
7072 < div className = "relative flex h-screen flex-col overflow-hidden" >
7173 < TitleBar similarFilesOpen = { showSimilarFiles } toggleSimilarFiles = { ( ) => setShowSimilarFiles ( ! showSimilarFiles ) } />
@@ -86,7 +88,7 @@ const MainPageContent: React.FC = () => {
8688 < ResizablePanel defaultSize = { 80 } >
8789 < div className = "size-full" >
8890 { currentlyOpenFilePath || showChatbot ? (
89- < ResizablePanelGroup direction = "horizontal" className = "size-full" >
91+ < ResizablePanelGroup direction = "horizontal" className = "size-full" key = { panelGroupKey } >
9092 { currentlyOpenFilePath && showEditor && (
9193 < >
9294 < ResizablePanel defaultSize = { 65 } >
You can’t perform that action at this time.
0 commit comments