Переглянути джерело

:art: https://github.com/siyuan-note/siyuan/issues/5332

Vanessa 3 роки тому
батько
коміт
313074414a
2 змінених файлів з 2 додано та 1 видалено
  1. 1 1
      app/src/protyle/hint/index.ts
  2. 1 0
      app/src/util/history.ts

+ 1 - 1
app/src/protyle/hint/index.ts

@@ -172,7 +172,7 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;
             const textareaPosition = getSelectionPosition(protyle.wysiwyg.element);
             setPosition(this.element, textareaPosition.left, textareaPosition.top + 26, 30);
         } else {
-            this.element.insertAdjacentHTML("beforeend", "<div class=\"fn__loading\"><img width=\"64px\" src=\"/stage/loading-pure.svg\"></div>");
+            this.element.insertAdjacentHTML("beforeend", '<div class="fn__loading"><img width="64px" src="/stage/loading-pure.svg"></div>');
         }
     }
 

+ 1 - 0
app/src/util/history.ts

@@ -138,6 +138,7 @@ const renderRepoItem = (response: IWebSocketData, element: Element, type: string
 };
 
 const renderRepo = (element: Element, currentPage: number) => {
+    element.lastElementChild.innerHTML = '<li style="position: relative;height: 100%;"><div class="fn__loading"><img width="64px" src="/stage/loading-pure.svg"></div></li>';
     const previousElement = element.querySelector('[data-type="previous"]');
     const nextElement = element.querySelector('[data-type="next"]');
     if (currentPage < 0) {