Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: fix https://github.com/siyuan-note/siyuan/issues/5111

Vanessabbfc63854659
diff --git a/app/src/assets/scss/_snackbar.scss b/app/src/assets/scss/_snackbar.scss
index 44cf0a9d5e..09d3f1e4aa 100644
--- a/app/src/assets/scss/_snackbar.scss
+++ b/app/src/assets/scss/_snackbar.scss
@@ -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);
+ }
+}
diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.ts
index 2c6dc72d92..2c578e1173 100644
--- a/app/src/mobile/index.ts
+++ b/app/src/mobile/index.ts
@@ -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) {