From eb1e7b0bf20a3b320402f3d0f85e96a80548d5a4 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 10 Jul 2022 18:11:14 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/5390 --- app/src/menus/Menu.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/menus/Menu.ts b/app/src/menus/Menu.ts index 5b2523253..31b3644ac 100644 --- a/app/src/menus/Menu.ts +++ b/app/src/menus/Menu.ts @@ -35,6 +35,8 @@ export class Menu { if (rect.right > window.innerWidth && (rect.left - this.element.clientWidth - rect.width > 0 || Math.abs(rect.left - this.element.clientWidth - rect.width) < (rect.right - window.innerWidth))) { style = "left:auto;right:100%;"; + } else if (rect.right > window.innerWidth) { + style = `z-index:1;mix-blend-mode: normal;left:${window.innerWidth - rect.width}px;`; } if (rect.bottom > window.innerHeight) { style += `top: auto;bottom:-5px;max-height:${Math.min(rect.top, window.innerHeight * 0.4)}px`;