From f108e463e3f1f2bd91aec855d456c0d60ab8c72d Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 26 Nov 2024 10:14:17 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/12775 --- app/src/protyle/toolbar/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index 76c8ae5c1..e36357658 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -153,7 +153,7 @@ export class Toolbar { this.toolbarHeight = this.element.clientHeight; const y = rangePosition.top - this.toolbarHeight - 4; this.element.setAttribute("data-inity", y + Constants.ZWSP + protyle.contentElement.scrollTop.toString()); - setPosition(this.element, rangePosition.left - 52, Math.max(y, protyle.element.getBoundingClientRect().top)); + setPosition(this.element, rangePosition.left - 52, Math.max(y, protyle.element.getBoundingClientRect().top + 30)); this.element.querySelectorAll(".protyle-toolbar__item--current").forEach(item => { item.classList.remove("protyle-toolbar__item--current"); });