|
@@ -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 || (
|