mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
Improve tooltip (#13966)
* Improve tooltip * fix: https://github.com/siyuan-note/siyuan/issues/13971 * 重构逻辑,非必要不操作元素 * https://github.com/siyuan-note/siyuan/issues/13971 * fix https://ld246.com/article/1740361496784 * fix https://github.com/siyuan-note/siyuan/issues/13962
This commit is contained in:
parent
bf25fe7ea4
commit
0b4cff93ac
10 changed files with 94 additions and 58 deletions
|
|
@ -453,7 +453,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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue