Jelajahi Sumber

:art: Improve main window position https://github.com/siyuan-note/siyuan/issues/11437

Daniel 1 tahun lalu
induk
melakukan
1e2765962e
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      app/electron/main.js

+ 2 - 2
app/electron/main.js

@@ -278,10 +278,10 @@ const initMainWindow = () => {
             windowState.width = Math.min(defaultWidth, workArea.width);
             windowState.height = Math.min(defaultHeight, workArea.height);
         }
-        if (x > workArea.width) {
+        if (x >= workArea.width * 0.8) {
             x = 0;
         }
-        if (y > workArea.height) {
+        if (y >= workArea.height * 0.8) {
             y = 0;
         }
     }