mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
🎨 Update statusbar message timeout
This commit is contained in:
parent
43b376ac86
commit
5ede8fd1be
1 changed files with 3 additions and 2 deletions
|
|
@ -284,6 +284,7 @@ export const progressStatus = (data: IWebSocketData) => {
|
||||||
if (!statusElement) {
|
if (!statusElement) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isMobile()) {
|
if (isMobile()) {
|
||||||
if (!document.querySelector("#keyboardToolbar").classList.contains("fn__none")) {
|
if (!document.querySelector("#keyboardToolbar").classList.contains("fn__none")) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -293,7 +294,7 @@ export const progressStatus = (data: IWebSocketData) => {
|
||||||
statusElement.style.bottom = "0";
|
statusElement.style.bottom = "0";
|
||||||
statusTimeout = window.setTimeout(() => {
|
statusTimeout = window.setTimeout(() => {
|
||||||
statusElement.style.bottom = "";
|
statusElement.style.bottom = "";
|
||||||
}, 5000);
|
}, 7000);
|
||||||
} else {
|
} else {
|
||||||
const msgElement = statusElement.querySelector(".status__msg");
|
const msgElement = statusElement.querySelector(".status__msg");
|
||||||
if (msgElement) {
|
if (msgElement) {
|
||||||
|
|
@ -301,7 +302,7 @@ export const progressStatus = (data: IWebSocketData) => {
|
||||||
msgElement.innerHTML = data.msg;
|
msgElement.innerHTML = data.msg;
|
||||||
statusTimeout = window.setTimeout(() => {
|
statusTimeout = window.setTimeout(() => {
|
||||||
msgElement.innerHTML = "";
|
msgElement.innerHTML = "";
|
||||||
}, 5000);
|
}, 7000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue