From 035857b1bc41601311d036b77aa3c8b877d70c31 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 13 Feb 2023 11:52:26 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/7355 --- app/src/window/setHeader.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/window/setHeader.ts b/app/src/window/setHeader.ts index 8ee87f38f..4d22af8a8 100644 --- a/app/src/window/setHeader.ts +++ b/app/src/window/setHeader.ts @@ -38,7 +38,8 @@ export const setTabPosition = () => { item.headersElement.style.paddingLeft = ""; } } else { - if (rect.top <= 0 && rect.right >= window.innerWidth) { + // 显示器缩放后像素存在小数点偏差 https://github.com/siyuan-note/siyuan/issues/7355 + if (rect.top <= 0 && rect.right + 8 >= window.innerWidth) { (headerElement.lastElementChild as HTMLElement).style.paddingRight = (42 * 3) + "px"; } else { (headerElement.lastElementChild as HTMLElement).style.paddingRight = "";