mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-30 13:28:48 +01:00
This commit is contained in:
parent
c178d37411
commit
922f9ee820
1 changed files with 4 additions and 4 deletions
|
|
@ -90,7 +90,7 @@ const renderCompare = (app: App, element: HTMLElement) => {
|
|||
action: [Constants.CB_GET_HISTORY, Constants.CB_GET_HTML],
|
||||
});
|
||||
}
|
||||
textElement.previousElementSibling.textContent = dayjs(response.data.updated).format("YYYY-MM-DD HH:mm");
|
||||
leftElement.querySelector(".history__date").textContent = dayjs(response.data.updated).format("YYYY-MM-DD HH:mm");
|
||||
});
|
||||
const id2 = element.getAttribute("data-id2");
|
||||
if (id2) {
|
||||
|
|
@ -118,7 +118,7 @@ const renderCompare = (app: App, element: HTMLElement) => {
|
|||
action: [Constants.CB_GET_HISTORY, Constants.CB_GET_HTML],
|
||||
});
|
||||
}
|
||||
textElement.previousElementSibling.textContent = dayjs(response.data.updated).format("YYYY-MM-DD HH:mm");
|
||||
rightElement.querySelector(".history__date").textContent = dayjs(response.data.updated).format("YYYY-MM-DD HH:mm");
|
||||
});
|
||||
} else {
|
||||
rightElement.classList.add("fn__none");
|
||||
|
|
@ -241,13 +241,13 @@ const genHTML = (left: string, right: string, dialog: Dialog, direct: string) =>
|
|||
<div class="fn__flex-1 fn__flex">
|
||||
<div class="fn__none fn__flex-1 fn__flex-column">
|
||||
<div class="history__date">${dayjs(response.data.left.created).format("YYYY-MM-DD HH:mm")}</div>
|
||||
<div class="history__asset"></div>
|
||||
<div class="ft__center"></div>
|
||||
<textarea class="history__text fn__none fn__flex-1" readonly></textarea>
|
||||
<div class="fn__flex-1"></div>
|
||||
</div>
|
||||
<div class="fn__none fn__flex-1 fn__flex-column" style="border-left: 1px solid var(--b3-border-color);">
|
||||
<div class="history__date">${dayjs(response.data.right.created).format("YYYY-MM-DD HH:mm")}</div>
|
||||
<div class="history__asset"></div>
|
||||
<div class="ft__center"></div>
|
||||
<textarea class="history__text fn__none fn__flex-1" readonly></textarea>
|
||||
<div class="fn__flex-1"></div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue