This commit is contained in:
Vanessa 2022-08-28 12:48:21 +08:00
parent ae01b52ae3
commit 4a71829400
3 changed files with 3 additions and 8 deletions

View file

@ -198,11 +198,6 @@ progressLoading: 400
background-color: var(--b3-theme-background-light);
}
&--sync {
background-color: var(--b3-theme-primary) !important;
color: var(--b3-theme-on-primary) !important;
}
svg {
height: 14px;
width: 14px;

View file

@ -56,9 +56,9 @@ class App {
break;
case"syncing":
if (data.code === 0) {
document.querySelector("#barSync").classList.add("toolbar__item--sync");
document.querySelector("#barSync").classList.add("toolbar__item--active");
} else {
document.querySelector("#barSync").classList.remove("toolbar__item--sync");
document.querySelector("#barSync").classList.remove("toolbar__item--active");
}
document.querySelector("#barSync").setAttribute("aria-label", data.msg);
break;

View file

@ -112,7 +112,7 @@ export const getSyncCloudList = (cloudPanelElement: Element, reload = false, cb?
};
export const syncGuide = (element?: Element) => {
if (element && element.classList.contains("toolbar__item--sync")) {
if (element && element.classList.contains("toolbar__item--active")) {
return;
}
if (isMobile()) {