File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
apps/remix-ide/src/app/components Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff 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 ) : { }
You can’t perform that action at this time.
0 commit comments