Skip to content

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

:art: Simplify snapshot date range labels https://github.com/siyuan-note/siyuan/issues/19956

Daniele39dba4f8b1d
diff --git a/app/src/assets/scss/business/_history.scss b/app/src/assets/scss/business/_history.scss
index 01a567342b..7b8d1bcc7c 100644
--- a/app/src/assets/scss/business/_history.scss
+++ b/app/src/assets/scss/business/_history.scss
@@ -238,6 +238,12 @@
}
}
+ &-range {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ }
+
&-sources {
display: none;
padding: 0;
diff --git a/app/src/history/repoPanel.ts b/app/src/history/repoPanel.ts
index a1f8f7c430..83d74d586c 100644
--- a/app/src/history/repoPanel.ts
+++ b/app/src/history/repoPanel.ts
@@ -94,8 +94,11 @@ export const initRepoPanel = (root: HTMLElement, render: (pane: Element, page: n
<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>
- <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>
+ <div class="history__snapshot-range">
+ <input type="date" class="b3-text-field" data-range="start" aria-label="${lang.startDate}" min="1970-01-01" max="9999-12-31">
+ <span aria-hidden="true">-</span>
+ <input type="date" class="b3-text-field" data-range="end" aria-label="${lang.endDate}" min="1970-01-01" max="9999-12-31">
+ </div>
<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>