mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
This commit is contained in:
parent
019951cbf5
commit
b8ec6f6733
3 changed files with 12 additions and 6 deletions
|
|
@ -443,6 +443,7 @@
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background-color: var(--b3-theme-background);
|
background-color: var(--b3-theme-background);
|
||||||
@extend .fn__ellipsis;
|
@extend .fn__ellipsis;
|
||||||
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.protyle {
|
.protyle {
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
<div class="b3-menu__items"></div>
|
<div class="b3-menu__items"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="message" class="b3-snackbars"></div>
|
<div id="message" class="b3-snackbars"></div>
|
||||||
<div id="status" class="status status--hide"></div>
|
<div id="status" class="status"></div>
|
||||||
<div id="keyboardToolbar" class="keyboard fn__none"></div>
|
<div id="keyboardToolbar" class="keyboard fn__none"></div>
|
||||||
<div class="side-mask fn__none"></div>
|
<div class="side-mask fn__none"></div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
|
|
@ -36,10 +36,10 @@ const updateTitle = (rootID: string, tab: Tab, protyle?: IProtyle) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const reloadSync = (app: App, data: { upsertRootIDs: string[], removeRootIDs: string[] }, hideMsg = true) => {
|
export const reloadSync = (app: App, data: { upsertRootIDs: string[], removeRootIDs: string[] }, hideMsg = true) => {
|
||||||
if (hideMsg) {
|
if (hideMsg) {
|
||||||
hideMessage();
|
hideMessage();
|
||||||
}
|
}
|
||||||
/// #if MOBILE
|
/// #if MOBILE
|
||||||
if (window.siyuan.mobile.popEditor) {
|
if (window.siyuan.mobile.popEditor) {
|
||||||
if (data.removeRootIDs.includes(window.siyuan.mobile.popEditor.protyle.block.rootID)) {
|
if (data.removeRootIDs.includes(window.siyuan.mobile.popEditor.protyle.block.rootID)) {
|
||||||
hideElements(["dialog"]);
|
hideElements(["dialog"]);
|
||||||
|
|
@ -288,13 +288,18 @@ export const progressStatus = (data: IWebSocketData) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
statusElement.innerHTML = data.msg;
|
statusElement.innerHTML = data.msg;
|
||||||
statusElement.classList.remove("status--hide");
|
|
||||||
statusElement.style.bottom = "0";
|
statusElement.style.bottom = "0";
|
||||||
|
setTimeout(() => {
|
||||||
|
statusElement.style.bottom = "";
|
||||||
|
}, 5000);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const msgElement = statusElement.querySelector(".status__msg");
|
const msgElement = statusElement.querySelector(".status__msg");
|
||||||
if (msgElement) {
|
if (msgElement) {
|
||||||
msgElement.innerHTML = data.msg;
|
msgElement.innerHTML = data.msg;
|
||||||
|
setTimeout(() => {
|
||||||
|
msgElement.innerHTML = "";
|
||||||
|
}, 5000);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue