Vanessa 2022-07-06 09:47:23 +08:00
parent 6ecf512a73
commit 313074414a
2 changed files with 2 additions and 1 deletions

View file

@ -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>');
}
}

View file

@ -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) {