This commit is contained in:
Vanessa 2023-04-18 19:35:31 +08:00
parent 9a760026b7
commit 9f75163c2e
2 changed files with 9 additions and 4 deletions

View file

@ -339,7 +339,7 @@ export const bazaar = {
highlightRender(mdElement);
});
}
readmeElement.style.right = "0";
readmeElement.classList.add("config-bazaar__readme--show")
},
bindEvent() {
fetchPost("/api/bazaar/getBazaarTheme", {}, response => {
@ -377,8 +377,7 @@ export const bazaar = {
event.stopPropagation();
break;
} else if (type === "goBack") {
const readmeElement = bazaar.element.querySelector("#configBazaarReadme") as HTMLElement;
readmeElement.style.right = "-100%";
bazaar.element.querySelector("#configBazaarReadme").classList.remove("config-bazaar__readme--show")
event.preventDefault();
event.stopPropagation();
break;