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/16525

Vanessa7a079ae55158
diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts
index 2c02ed29d1..06e84c863e 100644
--- a/app/src/layout/dock/Files.ts
+++ b/app/src/layout/dock/Files.ts
@@ -464,15 +464,15 @@ export class Files extends Model {
});
}
});
- this.element.addEventListener("dragend", () => {
+ this.element.addEventListener("dragend", (event) => {
this.parent.panelElement.classList.remove("sy__file--disablehover");
- this.element.querySelectorAll(".b3-list-item--focus").forEach((item: HTMLElement, index) => {
+ this.element.querySelectorAll('.b3-list-item[style*="opacity: 0.38;"]').forEach((item: HTMLElement, index) => {
item.style.opacity = "";
// https://github.com/siyuan-note/siyuan/issues/11587
- if (index === 0) {
- const airaLabelElement = item.querySelector(".ariaLabel");
- if (airaLabelElement) {
- showTooltip(airaLabelElement.getAttribute("aria-label"), airaLabelElement);
+ if (index === 0 && hasClosestByClassName(document.elementFromPoint(event.clientX, event.clientY), "sy__file")) {
+ const ariaLabelElement = item.querySelector(".ariaLabel");
+ if (ariaLabelElement) {
+ showTooltip(ariaLabelElement.getAttribute("aria-label"), ariaLabelElement);
}
}
});