-
${window.siyuan.languages.search}
+ emptyElement.innerHTML = `
+ ${window.siyuan.languages.search}
- ${window.siyuan.languages.recentDocs}
+ ${window.siyuan.languages.recentDocs}
- ${window.siyuan.languages.dataHistory}
+ ${window.siyuan.languages.dataHistory}
- ${window.siyuan.languages.newFile}
+ ${window.siyuan.languages.newFile}
- ${window.siyuan.languages.newNotebook}
+ ${window.siyuan.languages.newNotebook}
- ${window.siyuan.languages.help}
+ ${window.siyuan.languages.help}
`;
emptyElement.addEventListener("click", (event) => {
let target = event.target as HTMLElement;
diff --git a/app/src/util/Tree.ts b/app/src/util/Tree.ts
index 8e631c989..94de65d9a 100644
--- a/app/src/util/Tree.ts
+++ b/app/src/util/Tree.ts
@@ -77,7 +77,7 @@ export class Tree {
let style = "";
if (isMobile()) {
if (item.depth > 0) {
- style = `padding-left: ${(item.depth - 1) * 30 + 44}px`;
+ style = `padding-left: ${(item.depth - 1) * 20 + 24}px`;
}
} else {
style = `padding-left: ${(item.depth - 1) * 18 + 22}px;margin-right: 2px`;
@@ -130,7 +130,7 @@ ${item.label ? "data-label='" + item.label + "'" : ""}>
let style = "";
if (isMobile()) {
if (item.depth > 0) {
- style = `padding-left: ${(item.depth - 1) * 30 + 44}px`;
+ style = `padding-left: ${(item.depth - 1) * 20 + 24}px`;
}
} else {
style = `padding-left: ${(item.depth - 1) * 18 + 22}px;margin-right: 2px`;
diff --git a/app/src/util/pathName.ts b/app/src/util/pathName.ts
index 8f125c4c0..10d79a09d 100644
--- a/app/src/util/pathName.ts
+++ b/app/src/util/pathName.ts
@@ -232,9 +232,9 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void,
${item.dueFlashcardCount}
${item.flashcardCount}`;
}
- fileHTML += `
+ fileHTML += `
${unicode2Emoji(item.boxIcon || Constants.SIYUAN_IMAGE_NOTE, "b3-list-item__graphic", true)}
- ${escapeHtml(item.hPath)}
+ ${escapeHtml(item.hPath)}
${countHTML}
`;
});
@@ -503,7 +503,7 @@ const getLeaf = (liElement: HTMLElement, flashcard: boolean) => {
}
fileHTML += `
-
+
${unicode2Emoji(item.icon || (item.subFileCount === 0 ? Constants.SIYUAN_IMAGE_FILE : Constants.SIYUAN_IMAGE_FOLDER), "b3-list-item__graphic", true)}