mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-11 07:02:33 +01:00
🐛 设置界面遮挡
This commit is contained in:
parent
199a60479a
commit
1cc2a66714
2 changed files with 9 additions and 10 deletions
|
|
@ -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 = "";
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue