mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
💄
This commit is contained in:
parent
ae01b52ae3
commit
4a71829400
3 changed files with 3 additions and 8 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue