This commit is contained in:
Vanessa 2022-06-06 21:17:41 +08:00
parent 0db4359591
commit bbfc638546
2 changed files with 19 additions and 2 deletions

View file

@ -20,7 +20,7 @@
transition: transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms;
&--show {
transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0) !important;
}
& > .b3-button {
@ -85,3 +85,18 @@
}
}
}
@media screen and (max-width: 520px) {
.b3-snackbars {
top: 35px;
right: calc(10vw - 18px);
}
.b3-snackbar__content {
max-width: 80vw
}
.b3-snackbars {
transform: translate3d(100vw, 0, 0);
}
}

View file

@ -14,7 +14,7 @@ import {initAssets, loadAssets} from "../util/assets";
import {openMobileFileById} from "./editor";
import {promiseTransactions} from "../protyle/wysiwyg/transaction";
import {bootSync} from "../dialog/processSystem";
import {initMessage} from "../dialog/message";
import {initMessage, showMessage} from "../dialog/message";
class App {
constructor() {
@ -60,6 +60,8 @@ class App {
window.JSAndroid.changeStatusBarColor(getComputedStyle(document.body).getPropertyValue("--b3-theme-background"), window.siyuan.config.appearance.mode);
}
initMessage();
showMessage("ww", 0, "error");
showMessage("dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", 0)
});
});
if (navigator.userAgent.indexOf("iPhone") > -1) {