🎨 history
This commit is contained in:
parent
b4719727f9
commit
5a65eeeada
3 changed files with 5 additions and 5 deletions
|
@ -34,6 +34,6 @@
|
|||
|
||||
&__panel > .b3-list,
|
||||
&__panel > .history__diff {
|
||||
width: 214px;
|
||||
width: 256px;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ const renderDoc = (element: HTMLElement, currentPage: number, id: string) => {
|
|||
}
|
||||
let logsHTML = "";
|
||||
response.data.histories.forEach((item: string) => {
|
||||
logsHTML += `<li class="b3-list-item" data-created="${item}">
|
||||
logsHTML += `<li class="b3-list-item b3-list-item--hide-action" data-created="${item}">
|
||||
<span class="b3-list-item__text">${dayjs(parseInt(item) * 1000).format("YYYY-MM-DD HH:mm:ss")}</span>
|
||||
<span class="fn__space"></span>
|
||||
<span class="b3-list-item__action b3-tooltips b3-tooltips__w" data-type="rollback" aria-label="${window.siyuan.languages.rollback}">
|
||||
|
|
|
@ -209,7 +209,7 @@ ${statHTML}`;
|
|||
</div>
|
||||
</li>`;
|
||||
/// #else
|
||||
repoHTML += `<li class="b3-list-item" data-type="repoitem" data-id="${item.id}" data-tag="${item.tag}">
|
||||
repoHTML += `<li class="b3-list-item b3-list-item--hide-action" data-type="repoitem" data-id="${item.id}" data-tag="${item.tag}">
|
||||
<div class="fn__flex-1">${infoHTML}</div>
|
||||
${actionHTML}
|
||||
</li>`;
|
||||
|
@ -274,7 +274,7 @@ const renderRmNotebook = (element: HTMLElement) => {
|
|||
if (item.items.length > 0) {
|
||||
logsHTML += `<ul class="${index === 0 ? "" : "fn__none"}">`;
|
||||
item.items.forEach((docItem) => {
|
||||
logsHTML += `<li data-type="notebook" data-path="${docItem.path}" class="b3-list-item" style="padding-left: 32px">
|
||||
logsHTML += `<li data-type="notebook" data-path="${docItem.path}" class="b3-list-item b3-list-item--hide-action" style="padding-left: 32px">
|
||||
<span class="b3-list-item__text">${escapeHtml(docItem.title)}</span>
|
||||
<span class="fn__space"></span>
|
||||
<span class="b3-list-item__action b3-tooltips b3-tooltips__w" data-type="rollback" aria-label="${window.siyuan.languages.rollback}">
|
||||
|
@ -543,7 +543,7 @@ const bindEvent = (app: App, element: Element, dialog?: Dialog) => {
|
|||
iconElement.classList.add("b3-list-item__arrow--open");
|
||||
let html = "";
|
||||
response.data.items.forEach((docItem: { title: string, path: string }) => {
|
||||
html += `<li title="${escapeAttr(docItem.title)}" data-type="${typeElement.value === "2" ? "assets" : "doc"}" data-path="${docItem.path}" class="b3-list-item" style="padding-left: 40px">
|
||||
html += `<li title="${escapeAttr(docItem.title)}" data-type="${typeElement.value === "2" ? "assets" : "doc"}" data-path="${docItem.path}" class="b3-list-item b3-list-item--hide-action" style="padding-left: 40px">
|
||||
<span class="b3-list-item__text">${escapeHtml(docItem.title)}</span>
|
||||
<span class="fn__space"></span>
|
||||
<span class="b3-list-item__action b3-tooltips b3-tooltips__w" data-type="rollback" aria-label="${window.siyuan.languages.rollback}">
|
||||
|
|
Loading…
Add table
Reference in a new issue