浏览代码

:art: 笔记本拖回原处时重新显示悬浮提示

Jeffrey Chen 6 月之前
父节点
当前提交
0949efbe9d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/layout/dock/Files.ts

+ 1 - 1
app/src/layout/dock/Files.ts

@@ -446,7 +446,7 @@ export class Files extends Model {
                 item.style.opacity = "";
                 item.style.opacity = "";
                 // https://github.com/siyuan-note/siyuan/issues/11587
                 // https://github.com/siyuan-note/siyuan/issues/11587
                 if (index === 0) {
                 if (index === 0) {
-                    const airaLabelElement = item.querySelector(".ariaLabel");
+                    const airaLabelElement = item.querySelector(".ariaLabel") || item.querySelector(".b3-list-item__text");
                     if (airaLabelElement) {
                     if (airaLabelElement) {
                         showTooltip(airaLabelElement.getAttribute("aria-label"), airaLabelElement);
                         showTooltip(airaLabelElement.getAttribute("aria-label"), airaLabelElement);
                     }
                     }