Skip to content

Commit e1faeed

Browse files
committed
shrink step by step
1 parent 9e99caa commit e1faeed

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,22 @@ 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', () => {
47+
// Listen for terminal panel being shown - auto-restore right panel if maximized
48+
this.on('terminal', 'terminalPanelShown', () => {
4949
if (this.isMaximized) {
5050
this.maximizePanel() // This will toggle and restore the panel
5151
}
5252
})
5353

54-
// Listen for terminal panel being shown - auto-restore right panel if maximized
55-
this.on('terminal', 'terminalPanelShown', () => {
54+
// Listen for file changes - auto-restore right panel if maximized when main panel is used
55+
this.on('fileManager', 'currentFileChanged', () => {
56+
if (this.isMaximized) {
57+
this.maximizePanel() // This will toggle and restore the panel
58+
}
59+
})
60+
61+
// Listen for tab/app switches - auto-restore right panel if maximized (includes home tab, file tabs, etc.)
62+
this.on('tabs', 'switchApp', () => {
5663
if (this.isMaximized) {
5764
this.maximizePanel() // This will toggle and restore the panel
5865
}

0 commit comments

Comments
 (0)