Jelajahi Sumber

:art: fix https://github.com/siyuan-note/siyuan/issues/7036

Vanessa 2 tahun lalu
induk
melakukan
fcdc6c0a50
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      app/src/layout/status.ts
  2. 1 1
      app/src/util/onGetConfig.ts

+ 1 - 1
app/src/layout/status.ts

@@ -118,7 +118,7 @@ export const initStatus = () => {
                     }
                 }).element);
                 const rect = target.getBoundingClientRect()
-                window.siyuan.menus.menu.popup({x: rect.right, y: rect.bottom, h: rect.height, w: rect.width});
+                window.siyuan.menus.menu.popup({x: rect.right, y: rect.bottom, h: rect.height}, true);
                 event.stopPropagation();
                 break;
             } else if (target.classList.contains("b3-menu__item")) {

+ 1 - 1
app/src/util/onGetConfig.ts

@@ -262,7 +262,7 @@ const initBar = () => {
                     }
                 }).element);
                 const rect = target.getBoundingClientRect();
-                window.siyuan.menus.menu.popup({x: rect.left, y: rect.bottom});
+                window.siyuan.menus.menu.popup({x: rect.right, y: rect.bottom}, true);
                 event.stopPropagation();
                 break;
             } else if (target.id === "toolbarVIP") {