mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 18:41:00 +08:00
This commit is contained in:
parent
aa97f0df87
commit
b945c39e81
@ -139,10 +139,10 @@ export class Dock {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (currentNowSize < minSize && direction === "lr" ) {
|
if (currentNowSize < minSize && direction === "lr") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (currentNowSize < 64 && direction === "tb" ) {
|
if (currentNowSize < 64 && direction === "tb") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.layout.element.style[direction === "lr" ? "width" : "height"] = currentNowSize + "px";
|
this.layout.element.style[direction === "lr" ? "width" : "height"] = currentNowSize + "px";
|
||||||
@ -234,6 +234,10 @@ export class Dock {
|
|||||||
) {
|
) {
|
||||||
return;
|
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") {
|
if (this.position === "Left") {
|
||||||
this.layout.element.style.transform = `translateX(-${this.layout.element.clientWidth + 8}px)`;
|
this.layout.element.style.transform = `translateX(-${this.layout.element.clientWidth + 8}px)`;
|
||||||
this.layout.element.style.left = "";
|
this.layout.element.style.left = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user