Skip to content

Commit 5b4a3ee

Browse files
committed
restore on left or bottom panel display
1 parent a28da89 commit 5b4a3ee

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

apps/remix-ide/src/app/components/right-side-panel.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,20 @@ export class RightSidePanel extends AbstractPanel {
4444
}
4545
})
4646

47+
// Listen for left panel being shown - auto-restore right panel if maximized
48+
this.on('sidePanel', 'leftSidePanelShown', () => {
49+
if (this.isMaximized) {
50+
this.maximizePanel() // This will toggle and restore the panel
51+
}
52+
})
53+
54+
// Listen for terminal panel being shown - auto-restore right panel if maximized
55+
this.on('terminal', 'terminalPanelShown', () => {
56+
if (this.isMaximized) {
57+
this.maximizePanel() // This will toggle and restore the panel
58+
}
59+
})
60+
4761
// Initialize isHidden state from panelStates in localStorage
4862
const panelStatesStr = window.localStorage.getItem('panelStates')
4963
const panelStates = panelStatesStr ? JSON.parse(panelStatesStr) : {}

0 commit comments

Comments
 (0)