maximise learneth (& other)

pull/5370/head
yann300 1 year ago committed by Aniket
parent 365ffe7792
commit 6ef4addf4b
  1. 7
      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)
}
}
/**

Loading…
Cancel
Save