Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:rotating_light:

Vanessaffb959db6eae
diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts
index b6f14011a9..9790806e46 100644
--- a/app/src/layout/dock/index.ts
+++ b/app/src/layout/dock/index.ts
@@ -105,7 +105,7 @@ ${this.position === "Top" ? ("top:" + (.5 + this.element.clientHeight + document
this.resizeElement.classList.add("fn__none");
} else {
target.setAttribute("aria-label", window.siyuan.languages.unpin);
- this.layout.element.style.opacity = ""
+ this.layout.element.style.opacity = "";
if (hasActive) {
this.resizeElement.classList.remove("fn__none");
}
@@ -168,12 +168,10 @@ ${this.position === "Top" ? "top" : "bottom"}:-${this.layout.element.clientHeigh
this.layout.element.clientWidth === 0 && this.layout.element.style.width.startsWith("0")) {
return;
}
- console.log(2, this.layout.element.clientHeight, this.layout.element.style.height)
if ((this.position === "Top" || this.position === "Bottom") &&
this.layout.element.clientHeight === 0 && this.layout.element.style.height.startsWith("0")) {
return;
}
- console.log(3)
this.layout.element.style.opacity = "1";
if (this.position === "Left") {
window.siyuan.layout.leftDock.layout.element.style.left = (window.siyuan.layout.leftDock.element.clientWidth + .5) + "px";
@@ -225,7 +223,7 @@ ${this.position === "Top" ? "top" : "bottom"}:-${this.layout.element.clientHeigh
}
});
if (needFocus) {
- this.showDock()
+ this.showDock();
return;
}
}
@@ -356,13 +354,12 @@ ${this.position === "Top" ? "top" : "bottom"}:-${this.layout.element.clientHeigh
} else {
this.layout.element.style.height = this.getMaxSize() + "px";
}
- console.log(this.layout.element.style.height, this.layout.element.clientHeight)
if ((type === "graph" || type === "globalGraph") &&
document.querySelector("body").classList.contains("body--win32") && this.layout.element.querySelector(".fullscreen")) {
document.getElementById("drag").classList.add("fn__hidden");
}
if (this.pin) {
- this.layout.element.style.opacity = ""
+ this.layout.element.style.opacity = "";
this.resizeElement.classList.remove("fn__none");
}
}
diff --git a/app/src/util/globalShortcut.ts b/app/src/util/globalShortcut.ts
index b431b27180..faa90949e0 100644
--- a/app/src/util/globalShortcut.ts
+++ b/app/src/util/globalShortcut.ts
@@ -124,7 +124,7 @@ export const globalShortcut = () => {
if (event.clientY < 75) {
window.siyuan.layout.topDock.showDock();
} else if (event.clientY > window.innerHeight - 73) {
- window.siyuan.layout.bottomDock.showDock()
+ window.siyuan.layout.bottomDock.showDock();
}
const eventPath0 = event.composedPath()[0] as HTMLElement;