From b945c39e81ebe0f76dc389a3f81857d9c15d2fc4 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 28 Feb 2023 09:53:39 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/7504 --- app/src/layout/dock/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts index b18624d49..29e735176 100644 --- a/app/src/layout/dock/index.ts +++ b/app/src/layout/dock/index.ts @@ -139,10 +139,10 @@ export class Dock { } } }); - if (currentNowSize < minSize && direction === "lr" ) { + if (currentNowSize < minSize && direction === "lr") { return; } - if (currentNowSize < 64 && direction === "tb" ) { + if (currentNowSize < 64 && direction === "tb") { return; } this.layout.element.style[direction === "lr" ? "width" : "height"] = currentNowSize + "px"; @@ -234,6 +234,10 @@ export class Dock { ) { return; } + // https://github.com/siyuan-note/siyuan/issues/7504 + if (this.layout.element.contains(document.activeElement) && document.activeElement.classList.contains("b3-text-field")) { + return; + } if (this.position === "Left") { this.layout.element.style.transform = `translateX(-${this.layout.element.clientWidth + 8}px)`; this.layout.element.style.left = "";