🐛 设置界面遮挡

This commit is contained in:
Vanessa 2023-04-11 19:17:55 +08:00
parent 199a60479a
commit 1cc2a66714
2 changed files with 9 additions and 10 deletions

View file

@ -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;

View file

@ -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 = "";
}
};