From 4e679cbca3c355f9ed4fa6f86fffd08438652351 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 6 Jul 2022 00:34:38 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/5332 --- app/src/util/history.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/util/history.ts b/app/src/util/history.ts index bc0c8ae79..ff443bdad 100644 --- a/app/src/util/history.ts +++ b/app/src/util/history.ts @@ -109,11 +109,13 @@ const renderRepoItem = (response: IWebSocketData, element: Element, type: string element.lastElementChild.innerHTML = `
  • ${window.siyuan.languages.emptyContent}
  • `; return; } - let actionHTML = ` `; + let actionHTML = ` +`; if (type === "download") { actionHTML = `` } else if (type === "upload") { - actionHTML = `` + actionHTML = ` +` } let repoHTML = ""; response.data.snapshots.forEach((item: { memo: string, id: string, hCreated: string, count: number, hSize: string, tag: string }) => { @@ -126,9 +128,6 @@ const renderRepoItem = (response: IWebSocketData, element: Element, type: string ${window.siyuan.languages.fileCount}${item.count} ${actionHTML} - - - `; }); element.lastElementChild.innerHTML = `${repoHTML}`;