Skip to content

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

:bug: 设置界面遮挡

Vanessa1cc2a66714f3
diff --git a/app/src/assets/scss/mobile.scss b/app/src/assets/scss/mobile.scss
index 24257207c8..6773fe3082 100644
--- a/app/src/assets/scss/mobile.scss
+++ b/app/src/assets/scss/mobile.scss
@@ -174,6 +174,8 @@
}
#model {
+ box-sizing: border-box;
+
.config-about__logo {
display: flex;
align-items: center;
@@ -430,7 +432,7 @@
display: block;
}
-.protyle{
+.protyle {
&-util {
.color__square {
height: 24px;
diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.ts
index 2146098deb..9c92f383b1 100644
--- a/app/src/mobile/util/keyboardToolbar.ts
+++ b/app/src/mobile/util/keyboardToolbar.ts
@@ -164,9 +164,6 @@ const showKeyboardToolbarUtil = (oldScrollTop: number) => {
const hideKeyboardToolbarUtil = () => {
const toolbarElement = document.getElementById("keyboardToolbar");
- if (toolbarElement.style.height === "") {
- return;
- }
toolbarElement.style.height = "";
window.siyuan.mobile.editor.protyle.element.style.marginBottom = "42px";
toolbarElement.querySelector('.keyboard__action[data-type="add"]').classList.remove("protyle-toolbar__item--current");
@@ -266,9 +263,9 @@ export const showKeyboardToolbar = () => {
return;
}
toolbarElement.classList.remove("fn__none");
- const searchPathElement = document.getElementById("searchPath");
- if (searchPathElement) {
- (searchPathElement.nextElementSibling as HTMLElement).style.marginBottom = "42px";
+ const modelElement = document.getElementById("model");
+ if (modelElement.style.transform === "translateY(0px)") {
+ modelElement.style.paddingBottom = "42px";
}
const range = getSelection().getRangeAt(0);
if (!window.siyuan.mobile.editor ||
@@ -298,9 +295,9 @@ export const hideKeyboardToolbar = () => {
toolbarElement.classList.add("fn__none");
toolbarElement.style.height = "";
window.siyuan.mobile.editor.protyle.element.style.marginBottom = "";
- const searchPathElement = document.getElementById("searchPath");
- if (searchPathElement) {
- (searchPathElement.nextElementSibling as HTMLElement).style.marginBottom = "";
+ const modelElement = document.getElementById("model");
+ if (modelElement.style.transform === "translateY(0px)") {
+ modelElement.style.paddingBottom = "";
}
};