File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
apps/remix-ide/src/app/components Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,8 @@ export class RightSidePanel extends AbstractPanel {
7373 }
7474
7575 async pinView ( profile , view ) {
76- if ( this . hiddenPlugin ) {
76+ // Only show the panel if we're pinning a different plugin than the one that's currently hidden
77+ if ( this . hiddenPlugin && this . hiddenPlugin . name !== profile . name ) {
7778 const pinnedPanel = document . querySelector ( '#right-side-panel' )
7879 pinnedPanel ?. classList . remove ( 'd-none' )
7980 this . hiddenPlugin = null
Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ export class SidePanel extends AbstractPanel {
3535
3636 if ( panelStates . leftSidePanel ) {
3737 this . isHidden = panelStates . leftSidePanel . isHidden || false
38+ // Apply d-none class to hide the panel on reload if it was hidden
39+ if ( this . isHidden ) {
40+ const sidePanel = document . querySelector ( '#side-panel' )
41+ sidePanel ?. classList . add ( 'd-none' )
42+ }
3843 } else {
3944 // Initialize with default state if not found
4045 this . isHidden = false
You can’t perform that action at this time.
0 commit comments