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); background-color: var(--b3-theme-background-light);
} }
&--sync {
background-color: var(--b3-theme-primary) !important;
color: var(--b3-theme-on-primary) !important;
}
svg { svg {
height: 14px; height: 14px;
width: 14px; width: 14px;

View file

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

View file

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