mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-30 20:25:17 +01:00
🚨
This commit is contained in:
parent
e80354ebbb
commit
5cdcd27faa
7 changed files with 10 additions and 10 deletions
|
|
@ -93,7 +93,7 @@ export const initBlockPopover = (app: App) => {
|
|||
showTooltip(notebookItemElement.getAttribute("aria-label") || "", notebookItemElement);
|
||||
fetchPost("/api/notebook/getNotebookInfo", {notebook: notebookItemElement.parentElement.parentElement.getAttribute("data-url")}, (response) => {
|
||||
const boxData = response.data.boxInfo;
|
||||
const tip = `${boxData.name} <small class='ft__on-surface'>${boxData.hSize}</small>${boxData.docCount !== 0 ? window.siyuan.languages.includeSubFile.replace("x", boxData.docCount) : ""}<br>${window.siyuan.languages.modifiedAt} ${boxData.hMtime}<br>${window.siyuan.languages.createdAt} ${boxData.hCtime}`
|
||||
const tip = `${boxData.name} <small class='ft__on-surface'>${boxData.hSize}</small>${boxData.docCount !== 0 ? window.siyuan.languages.includeSubFile.replace("x", boxData.docCount) : ""}<br>${window.siyuan.languages.modifiedAt} ${boxData.hMtime}<br>${window.siyuan.languages.createdAt} ${boxData.hCtime}`;
|
||||
|
||||
const scopeNotebookItemElement = hasClosestByClassName(event.target, "b3-list-item__text");
|
||||
if (notebookItemElement && scopeNotebookItemElement && notebookItemElement.isSameNode(scopeNotebookItemElement)) {
|
||||
|
|
@ -104,7 +104,7 @@ export const initBlockPopover = (app: App) => {
|
|||
scopeNotebookItemElement.parentElement.parentElement.getAttribute("data-url") === boxData.id) {
|
||||
scopeNotebookItemElement.setAttribute("aria-label", tip);
|
||||
}
|
||||
})
|
||||
});
|
||||
} else {
|
||||
const tipElement = hasClosestByAttribute(event.target, "id", "tooltip", true);
|
||||
if (!tipElement || (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue