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