Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Liang Ding9e2f531e3b14
diff --git a/app/src/history/history.ts b/app/src/history/history.ts
index 908650397c..763892421d 100644
--- a/app/src/history/history.ts
+++ b/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 = "";