mirror of
https://github.com/frappe/books.git
synced 2024-11-09 15:20:56 +00:00
fix: Format code
This commit is contained in:
parent
ae5697dbad
commit
bf48f075ba
@ -26,7 +26,9 @@ export default function registerIpcMainMessageListeners(main: Main) {
|
||||
});
|
||||
|
||||
ipcMain.on(IPC_MESSAGES.MAXIMIZE_MAIN_WINDOW, () => {
|
||||
main.mainWindow!.isMaximized()?main.mainWindow!.unmaximize():main.mainWindow!.maximize()
|
||||
main.mainWindow!.isMaximized()
|
||||
? main.mainWindow!.unmaximize()
|
||||
: main.mainWindow!.maximize();
|
||||
});
|
||||
|
||||
ipcMain.on(IPC_MESSAGES.ISMAXIMIZED_MAIN_WINDOW, (event) => {
|
||||
|
@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<div
|
||||
class="
|
||||
relative
|
||||
window-drag
|
||||
flex
|
||||
items-center
|
||||
@ -17,7 +18,10 @@
|
||||
<p v-if="companyName && dbPath" class="mx-auto text-sm">
|
||||
{{ companyName }} - {{ dbPath }}
|
||||
</p>
|
||||
<div v-if="!isFullscreen" class="window-no-drag flex h-full items-center justify-end">
|
||||
<div
|
||||
v-if="!isFullscreen"
|
||||
class="absolute window-no-drag flex h-full items-center right-0"
|
||||
>
|
||||
<div
|
||||
class="
|
||||
flex
|
||||
@ -86,7 +90,10 @@ export default {
|
||||
},
|
||||
destroyed() {
|
||||
window.removeEventListener('resize', this.getIsFullscreen);
|
||||
document.removeEventListener('webkitfullscreenchange', this.getIsFullscreen);
|
||||
document.removeEventListener(
|
||||
'webkitfullscreenchange',
|
||||
this.getIsFullscreen
|
||||
);
|
||||
document.removeEventListener('mozfullscreenchange', this.getIsFullscreen);
|
||||
document.removeEventListener('fullscreenchange', this.getIsFullscreen);
|
||||
document.removeEventListener('MSFullscreenChange', this.getIsFullscreen);
|
||||
|
Loading…
Reference in New Issue
Block a user