Forráskód Böngészése

:art: Show abbreviated ID in data snapshot list Fix https://github.com/siyuan-note/siyuan/issues/8075

Liang Ding 2 éve
szülő
commit
9e2f531e3b
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      app/src/history/history.ts

+ 1 - 1
app/src/history/history.ts

@@ -111,7 +111,7 @@ const renderRepoItem = (response: IWebSocketData, element: Element, type: string
         <span class="b3-chip b3-chip--secondary b3-chip--small${item.tag ? "" : " fn__none"}">${item.tag}</span>
     </div>
     <div>
-        <span class="ft__smaller ft__on-surface">${item.hCreated}</span>
+        <span class="ft__smaller ft__on-surface"><code class='fn__code'>${item.id.substring(0, 7)}</code> ${item.hCreated}</span>
         <span class="b3-list-item__meta">${window.siyuan.languages.fileSize} ${item.hSize}</span>
         <span class="b3-list-item__meta">${window.siyuan.languages.fileCount} ${item.count}</span>`;
         let statHTML = "";