Skip to content

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

:art: Place snapshot date filters in the top toolbar https://github.com/siyuan-note/siyuan/issues/19956

Daniel2073e2ec3860
diff --git a/app/src/history/repoPanel.ts b/app/src/history/repoPanel.ts
index 5a66cede44..a1f8f7c430 100644
--- a/app/src/history/repoPanel.ts
+++ b/app/src/history/repoPanel.ts
@@ -90,17 +90,15 @@ export const initRepoPanel = (root: HTMLElement, render: (pane: Element, page: n
root.classList.toggle("history__snapshots--narrow", isMobile());
root.dataset.source = "local";
const template = root.innerHTML;
- root.innerHTML = `<div class="history__snapshot-toolbar">
- <button class="b3-button b3-button--text" data-action="normal" aria-pressed="true">${lang.dataSnapshot}</button>
- <button class="b3-button b3-button--text" data-action="tagged" aria-pressed="false">${lang.repoTaggedSnapshots}</button>
+ root.innerHTML = `<form class="history__snapshot-toolbar" data-role="date-range">
+ <button type="button" class="b3-button b3-button--text" data-action="normal" aria-pressed="true">${lang.dataSnapshot}</button>
+ <button type="button" class="b3-button b3-button--text" data-action="tagged" aria-pressed="false">${lang.repoTaggedSnapshots}</button>
<span class="fn__flex-1"></span>
- <button class="b3-button b3-button--outline fn__none" data-action="manage">${lang.repoBatchManage}</button>
-</div>
-<form class="history__snapshot-toolbar" data-role="date-range">
<label>${lang.startDate} <input type="date" class="b3-text-field" data-range="start" min="1970-01-01" max="9999-12-31"></label>
<label>${lang.endDate} <input type="date" class="b3-text-field" data-range="end" min="1970-01-01" max="9999-12-31"></label>
<button type="submit" class="b3-button b3-button--outline">${lang.filter}</button>
<button type="button" class="b3-button b3-button--text" data-action="range-clear">${lang.clear}</button>
+ <button type="button" class="b3-button b3-button--outline fn__none" data-action="manage">${lang.repoBatchManage}</button>
</form>
<div class="history__snapshot-columns"></div>
<div class="history__snapshot-toolbar fn__none" data-role="batch">