Skip to content

Commit

Permalink
🐛 Fix: decrease title-bar z-index when config-form dialog shows
Browse files Browse the repository at this point in the history
  • Loading branch information
Molunerfinn committed Dec 28, 2019
1 parent 9d4d605 commit f2750e1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/renderer/pages/Plugin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,16 @@ export default class extends Vue {
this.getPluginList()
}
}
@Watch('dialogVisible')
onDialogVisible (val: boolean) {
if (val) {
// @ts-ignore
document.querySelector('.main-content.el-row').style.zIndex = 101
} else {
// @ts-ignore
document.querySelector('.main-content.el-row').style.zIndex = 10
}
}
created () {
this.os = process.platform
ipcRenderer.on('pluginList', (evt: IpcRendererEvent, list: IPicGoPlugin[]) => {
Expand Down

0 comments on commit f2750e1

Please sign in to comment.