mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-22 00:06:09 +01:00
This commit is contained in:
parent
57bc6db377
commit
bc016afea1
6 changed files with 17 additions and 8 deletions
|
|
@ -258,6 +258,10 @@ export const showKeyboardToolbar = (height: number) => {
|
|||
return;
|
||||
}
|
||||
toolbarElement.classList.remove("fn__none");
|
||||
const searchPathElement = document.getElementById("searchPath");
|
||||
if (searchPathElement) {
|
||||
(searchPathElement.nextElementSibling as HTMLElement).style.marginBottom = "42px"
|
||||
}
|
||||
const range = getSelection().getRangeAt(0);
|
||||
if (!window.siyuan.mobile.editor ||
|
||||
!window.siyuan.mobile.editor.protyle.wysiwyg.element.contains(range.startContainer)) {
|
||||
|
|
@ -286,6 +290,10 @@ 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 = ""
|
||||
}
|
||||
};
|
||||
|
||||
export const activeBlur = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue