diff --git a/apps/remix-ide/src/app/components/vertical-icons.tsx b/apps/remix-ide/src/app/components/vertical-icons.tsx index f43a5505c3..2f69d5bee3 100644 --- a/apps/remix-ide/src/app/components/vertical-icons.tsx +++ b/apps/remix-ide/src/app/components/vertical-icons.tsx @@ -16,6 +16,8 @@ const profile = { events: ['toggleContent', 'showContent'] } +const toMaximize = ['LearnEth'] + export class VerticalIcons extends Plugin { events: EventEmitter htmlElement: HTMLDivElement @@ -106,6 +108,11 @@ export class VerticalIcons extends Plugin { // TODO: Only keep `this.emit` (issue#2210) this.emit('showContent', name) this.events.emit('showContent', name) + if (toMaximize.includes(name)) { + setTimeout(_ => { + this.call('layout', 'maximiseSidePanel') + }, 500) + } } /**