Skip to content

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

:lipstick: Align the located snapshot document to the top https://github.com/siyuan-note/siyuan/issues/19916

Daniel3b5da9a5c908
diff --git a/app/src/history/snapshotDetail.ts b/app/src/history/snapshotDetail.ts
index ebf2579a82..84fa38b4b4 100644
--- a/app/src/history/snapshotDetail.ts
+++ b/app/src/history/snapshotDetail.ts
@@ -96,7 +96,7 @@ export const openSnapshotDetail = async (app: App, reference: DocHistorySnapshot
root.querySelector(".history__snapshot-detail-content").classList.remove("fn__none");
if (selected) {
select(selected);
- selected.scrollIntoView({block: "nearest"});
+ selected.scrollIntoView({block: "start"});
}
} catch (error) {
if (!abort.signal.aborted && root.isConnected) {