mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 10:30:45 +08:00
This commit is contained in:
parent
0603ed3656
commit
6ec2513225
@ -195,4 +195,11 @@
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__date {
|
||||||
|
text-align: center;
|
||||||
|
line-height: 20px;
|
||||||
|
color: var(--b3-theme-on-surface);
|
||||||
|
background: var(--b3-theme-background);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -65,6 +65,7 @@ const renderCompare = (element: HTMLElement) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fetchPost("/api/repo/openRepoSnapshotDoc", {id: element.getAttribute("data-id")}, (response) => {
|
fetchPost("/api/repo/openRepoSnapshotDoc", {id: element.getAttribute("data-id")}, (response) => {
|
||||||
|
leftElement.classList.remove("fn__none");
|
||||||
const textElement = (leftElement.firstElementChild.nextElementSibling as HTMLTextAreaElement)
|
const textElement = (leftElement.firstElementChild.nextElementSibling as HTMLTextAreaElement)
|
||||||
if (response.data.isLargeDoc) {
|
if (response.data.isLargeDoc) {
|
||||||
textElement.value = response.data.content;
|
textElement.value = response.data.content;
|
||||||
@ -135,15 +136,15 @@ export const showDiff = (ids: string) => {
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="fn__flex-1 fn__flex">
|
<div class="fn__flex-1 fn__flex">
|
||||||
<div class="fn__flex-1 fn__flex-column">
|
<div class="fn__none fn__flex-1 fn__flex-column">
|
||||||
<div>${dayjs(response.data.left.created).format("YYYY-MM-DD HH:mm")}</div>
|
<div class="history__date">${dayjs(response.data.left.created).format("YYYY-MM-DD HH:mm")}</div>
|
||||||
<textarea style="height: 100%;width: 100%;" class="history__text fn__none"></textarea>
|
<textarea class="history__text fn__none fn__flex-1"></textarea>
|
||||||
<div style="min-height: 100%;"></div>
|
<div class="fn__flex-1"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="fn__none fn__flex-1 fn__flex-column" style="border-left: 1px solid var(--b3-border-color);">
|
<div class="fn__none fn__flex-1 fn__flex-column" style="border-left: 1px solid var(--b3-border-color);">
|
||||||
<div>${dayjs(response.data.right.created).format("YYYY-MM-DD HH:mm")}</div>
|
<div class="history__date">${dayjs(response.data.right.created).format("YYYY-MM-DD HH:mm")}</div>
|
||||||
<textarea style="height: 100%;width: 100%;" class="history__text fn__none"></textarea>
|
<textarea class="history__text fn__none fn__flex-1"></textarea>
|
||||||
<div style="min-height: 100%;"></div>
|
<div class="fn__flex-1"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>`,
|
</div>`,
|
||||||
|
Loading…
Reference in New Issue
Block a user