Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/13548

Vanessaeda34f2c7e62
diff --git a/app/src/layout/Tab.ts b/app/src/layout/Tab.ts
index 8bc41cd67a..6a896491c4 100644
--- a/app/src/layout/Tab.ts
+++ b/app/src/layout/Tab.ts
@@ -48,6 +48,16 @@ export class Tab {
this.headElement.addEventListener("mouseenter", (event) => {
event.stopPropagation();
event.preventDefault();
+ const dragElement = Array.from(this.headElement.parentElement.childNodes).find((item: HTMLElement) => {
+ if (item.style?.opacity === "0.1") {
+ return true;
+ }
+ });
+ if (dragElement) {
+ hideTooltip();
+ return;
+ }
+
let id = "";
if (this.model instanceof Editor && this.model.editor?.protyle?.block?.rootID) {
id = (this.model as Editor).editor.protyle.block.rootID;
diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.ts
index c4fa7f6478..d4dc45067d 100644
--- a/app/src/layout/Wnd.ts
+++ b/app/src/layout/Wnd.ts
@@ -219,6 +219,7 @@ export class Wnd {
}
return;
}
+ it.classList.remove("layout-tab-bars--drag");
if (!newTabHeaderElement.isSameNode(oldTabHeaderElement) &&
((oldTabHeaderElement.classList.contains("item--pin") && newTabHeaderElement.classList.contains("item--pin")) ||
(!oldTabHeaderElement.classList.contains("item--pin") && !newTabHeaderElement.classList.contains("item--pin")))) {