From 30237e2c1bc6675de2b286873540e8026b70d504 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 22 Apr 2023 18:00:52 +0800 Subject: [PATCH] :lipstick: --- app/src/history/history.ts | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/app/src/history/history.ts b/app/src/history/history.ts index 0269ee23e..d5c900988 100644 --- a/app/src/history/history.ts +++ b/app/src/history/history.ts @@ -163,27 +163,29 @@ const renderRepoItem = (response: IWebSocketData, element: Element, type: string tag: string, typesCount: { type: string, count: number }[] }) => { - let statHTML = `
- ${window.siyuan.languages.fileCount} ${item.count}`; + let statHTML = ""; if (item.typesCount) { + statHTML = '
'; item.typesCount.forEach(subItem => { - statHTML += `${subItem.type} ${subItem.count}`; + statHTML += `${subItem.type} ${subItem.count}`; }); + statHTML += "
"; } - statHTML+="
"; - const infoHTML = `
${escapeHtml(item.memo)} ${item.tag} - +
+
${item.id.substring(0, 7)} - - ${item.hCreated} - - ${window.siyuan.languages.fileSize} ${item.hSize} - -
${statHTML}`; + + ${item.hCreated} + + ${item.hSize} + + ${window.siyuan.languages.fileCount} ${item.count} + +${statHTML}`; /// #if MOBILE repoHTML += `