maximise learneth (& other)

pull/4321/head
yann300 11 months ago committed by Aniket
parent b3a61cf674
commit be51956f05
  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