Skip to content

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

:bug: Prevent stray separators in floating docks https://github.com/siyuan-note/siyuan/issues/19140

Daniel0211b6964e66
diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts
index 38845d3cc3..757d5f39ca 100644
--- a/app/src/layout/dock/index.ts
+++ b/app/src/layout/dock/index.ts
@@ -481,6 +481,7 @@ export class Dock {
private applyFloatingState(isSaveLayout: boolean, preferredSize?: number) {
this.clearDockHoverTimeout();
+ window.clearTimeout(this.hideResizeTimeout);
const hasActive = this.hasActive();
this.resetDockPosition(hasActive, preferredSize);
this.layout.element.style.opacity = "";
@@ -902,7 +903,7 @@ export class Dock {
if (!this.isFloating()) {
this.layout.element.style.opacity = "";
this.hideResizeTimeout = window.setTimeout(() => {
- if (this.panelVisible && this.hasActive()) {
+ if (this.panelVisible && this.hasActive() && !this.isFloating()) {
this.resizeElement.classList.remove("fn__none");
adjustLayout();
}