pull/5011/head
bunsenstraat 4 months ago committed by Aniket
parent 2d34a3511e
commit 07844a6821
  1. 3
      apps/remix-ide/src/app/panels/layout.ts
  2. 1
      libs/remix-ui/git/src/lib/gitactions.ts
  3. 11
      libs/remix-ui/git/src/lib/listeners.ts
  4. 1
      libs/remix-ui/statusbar/src/lib/remixui-statusbar-panel.tsx

@ -79,6 +79,7 @@ export class Layout extends Plugin {
})
this.on('sidePanel', 'focusChanged', async (name) => {
const current = await this.call('sidePanel', 'currentFocus')
console.log('focusChanged', current, this.maximised)
if (this.maximised[current]) {
this.event.emit('maximisesidepanel')
} else {
@ -129,6 +130,7 @@ export class Layout extends Plugin {
this.event.emit('maximisesidepanel')
const current = await this.call('sidePanel', 'currentFocus')
this.maximised[current] = true
console.log('maximised', this.maximised, current)
}
async maximisePinnedPanel () {
@ -147,6 +149,7 @@ export class Layout extends Plugin {
this.event.emit('resetsidepanel')
const current = await this.call('sidePanel', 'currentFocus')
this.maximised[current] = false
console.log('reset max', this.maximised, current)
}
async resetPinnedPanel () {

@ -852,6 +852,5 @@ export const clearGitLog = async () => {
}
export const setStorage = async (storage: storage) => {
console.log(storage)
dispatch(setStoragePayload(storage))
}

@ -165,19 +165,8 @@ export const setCallBacks = (viewPlugin: Plugin, gitDispatcher: React.Dispatch<g
})
plugin.on('sidePanel', 'focusChanged', async (name: string) => {
const pinnedPlugin = await plugin.call('pinnedPanel', 'currentFocus')
if (name == 'dgit') {
if (pinnedPlugin === 'dgit') {
plugin.call('layout', 'maximisePinnedPanel')
} else {
plugin.call('layout', 'maximiseSidePanel')
}
} else {
if (pinnedPlugin === 'dgit') {
plugin.call('layout', 'resetPinnedPanel')
} else {
plugin.call('layout', 'resetSidePanel')
}
}
})

@ -31,7 +31,6 @@ export function RemixUIStatusBar({ statusBarPlugin }: RemixUIStatusBarProps) {
mainAxis: true, padding: 10
}), size({
apply({ availableWidth, availableHeight, elements, ...state }) {
console.log(state)
Object.assign(elements.floating.style, {
maxWidth: `${availableWidth}`,
maxHeight: `auto`

Loading…
Cancel
Save