fix(history): align revision navigation with v1.0

Use the preferred Obsidian element helper and preseed the real-Obsidian scenario before startup. Register the focused test and strengthen revision boundary coverage.
This commit is contained in:
SeleiXi
2026-07-29 23:45:28 +08:00
parent 8b7d410327
commit 93bbab4253
4 changed files with 63 additions and 37 deletions
@@ -605,7 +605,7 @@ export class DocumentHistoryModal extends Modal {
e.addEventListener("click", () => this.navigateVersion("newer"));
});
this.revNavIndicator = revNavRow.createEl("span", { text: "\u2014" }, (e) => {
this.revNavIndicator = revNavRow.createSpan({ text: "\u2014" }, (e) => {
e.addClass("history-rev-indicator");
});
const diffOptionsRow = contentEl.createDiv("");