Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/8148

Vanessa19a01e862d28
diff --git a/app/src/assets/scss/mobile.scss b/app/src/assets/scss/mobile.scss
index 620eeba087..1b1f575336 100644
--- a/app/src/assets/scss/mobile.scss
+++ b/app/src/assets/scss/mobile.scss
@@ -428,13 +428,6 @@
@extend .fn__ellipsis;
}
-// iPhone 右上角属性中对不齐
-.protyle-wysiwyg--attr .protyle-attr > div:not(.protyle-attr--memo):not(.protyle-attr--refcount) {
- max-width: 26vw;
- white-space: nowrap;
- display: block;
-}
-
.protyle {
&-util {
.color__square {
@@ -446,6 +439,18 @@
&-font {
font-size: 14px;
}
+
+ // iPhone 右上角属性中对不齐
+ &-wysiwyg--attr .protyle-attr > div:not(.protyle-attr--memo):not(.protyle-attr--refcount) {
+ max-width: 26vw;
+ white-space: nowrap;
+ display: block;
+ }
+
+ // 移动端键盘弹起和点击加号需保持滚动高度一致
+ &-background__img img {
+ height: 200px;
+ }
}
@media (max-width: 620px) {
diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.ts
index 94e4d8daa4..121a78bcc3 100644
--- a/app/src/protyle/header/Background.ts
+++ b/app/src/protyle/header/Background.ts
@@ -26,7 +26,7 @@ export class Background {
this.element = document.createElement("div");
this.element.className = "protyle-background";
this.element.innerHTML = `<div class="protyle-background__img">
- <img class="fn__none" style="isMobile()? "200px" : "30vh"">
+ <img class="fn__none">
<div class="protyle-icons">
<span class="protyle-icon protyle-icon--first b3-tooltips b3-tooltips__sw" style="position: relative" aria-label="${window.siyuan.languages.upload}"><input type="file" style="position: absolute;width: 22px;height: 100%;top: 0;left: 0;opacity: .001;overflow: hidden;cursor: pointer;"><svg><use xlink:href="#iconUpload"></use></svg></span>
<span class="protyle-icon b3-tooltips b3-tooltips__sw" data-type="link" aria-label="${window.siyuan.languages.link}"><svg><use xlink:href="#iconLink"></use></svg></span>