From ba5f10eb52a33f5997462a855a8dd614dc48786f Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 5 Mar 2023 13:19:54 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/7564 --- app/src/mobile/util/keyboardToolbar.ts | 4 +--- app/src/types/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.ts index d9b324615..cfaa568c7 100644 --- a/app/src/mobile/util/keyboardToolbar.ts +++ b/app/src/mobile/util/keyboardToolbar.ts @@ -6,7 +6,7 @@ import {focusByRange, getSelectionPosition} from "../../protyle/util/selection"; import {removeBlock} from "../../protyle/wysiwyg/remove"; import {hintSlash} from "../../protyle/hint/extend"; -export const showKeyboardToolbar = (bottom = 0, height: number) => { +export const showKeyboardToolbar = (height: number) => { if (getSelection().rangeCount === 0 || window.siyuan.config.editor.readOnly || window.siyuan.config.readonly) { return; } @@ -17,8 +17,6 @@ export const showKeyboardToolbar = (bottom = 0, height: number) => { return; } toolbarElement.classList.remove("fn__none"); - toolbarElement.style.bottom = bottom + "px"; - const range = getSelection().getRangeAt(0); if (!window.siyuan.mobile.editor || !window.siyuan.mobile.editor.protyle.wysiwyg.element.contains(range.startContainer)) { diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts index d75e54dc9..42d13da3c 100644 --- a/app/src/types/index.d.ts +++ b/app/src/types/index.d.ts @@ -49,7 +49,7 @@ interface Window { goBack(): void - showKeyboardToolbar(bottom: number, height: number): void + showKeyboardToolbar(height: number): void hideKeyboardToolbar(): void