Explorar o código

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

Jeffrey Chen hai 6 meses
pai
achega
0949efbe9d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 = "";
                 // https://github.com/siyuan-note/siyuan/issues/11587
                 if (index === 0) {
-                    const airaLabelElement = item.querySelector(".ariaLabel");
+                    const airaLabelElement = item.querySelector(".ariaLabel") || item.querySelector(".b3-list-item__text");
                     if (airaLabelElement) {
                         showTooltip(airaLabelElement.getAttribute("aria-label"), airaLabelElement);
                     }