Skip to content

Commit be51956

Browse files
yann300Aniket-Engg
authored andcommitted
maximise learneth (& other)
1 parent b3a61cf commit be51956

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

apps/remix-ide/src/app/components/vertical-icons.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ const profile = {
1616
events: ['toggleContent', 'showContent']
1717
}
1818

19+
const toMaximize = ['LearnEth']
20+
1921
export class VerticalIcons extends Plugin {
2022
events: EventEmitter
2123
htmlElement: HTMLDivElement
@@ -106,6 +108,11 @@ export class VerticalIcons extends Plugin {
106108
// TODO: Only keep `this.emit` (issue#2210)
107109
this.emit('showContent', name)
108110
this.events.emit('showContent', name)
111+
if (toMaximize.includes(name)) {
112+
setTimeout(_ => {
113+
this.call('layout', 'maximiseSidePanel')
114+
}, 500)
115+
}
109116
}
110117

111118
/**

0 commit comments

Comments
 (0)