mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 06:54:08 +01:00
📱
This commit is contained in:
parent
3093096188
commit
efc1028658
1 changed files with 3 additions and 3 deletions
|
|
@ -317,7 +317,7 @@ const hideKeyboardToolbarUtil = () => {
|
||||||
toolbarElement.style.height = "";
|
toolbarElement.style.height = "";
|
||||||
const editor = getCurrentEditor();
|
const editor = getCurrentEditor();
|
||||||
if (editor) {
|
if (editor) {
|
||||||
editor.protyle.element.parentElement.style.paddingBottom = "42px";
|
editor.protyle.element.parentElement.style.paddingBottom = "48px";
|
||||||
}
|
}
|
||||||
toolbarElement.querySelector('.keyboard__action[data-type="add"]').classList.remove("protyle-toolbar__item--current");
|
toolbarElement.querySelector('.keyboard__action[data-type="add"]').classList.remove("protyle-toolbar__item--current");
|
||||||
toolbarElement.querySelector('.keyboard__action[data-type="text"]').classList.remove("protyle-toolbar__item--current");
|
toolbarElement.querySelector('.keyboard__action[data-type="text"]').classList.remove("protyle-toolbar__item--current");
|
||||||
|
|
@ -435,12 +435,12 @@ export const showKeyboardToolbar = () => {
|
||||||
toolbarElement.style.zIndex = (++window.siyuan.zIndex).toString();
|
toolbarElement.style.zIndex = (++window.siyuan.zIndex).toString();
|
||||||
const modelElement = document.getElementById("model");
|
const modelElement = document.getElementById("model");
|
||||||
if (modelElement.style.transform === "translateY(0px)") {
|
if (modelElement.style.transform === "translateY(0px)") {
|
||||||
modelElement.style.paddingBottom = "42px";
|
modelElement.style.paddingBottom = "48px";
|
||||||
}
|
}
|
||||||
const range = getSelection().getRangeAt(0);
|
const range = getSelection().getRangeAt(0);
|
||||||
const editor = getCurrentEditor();
|
const editor = getCurrentEditor();
|
||||||
if (editor && editor.protyle.wysiwyg.element.contains(range.startContainer)) {
|
if (editor && editor.protyle.wysiwyg.element.contains(range.startContainer)) {
|
||||||
editor.protyle.element.parentElement.style.paddingBottom = "42px";
|
editor.protyle.element.parentElement.style.paddingBottom = "48px";
|
||||||
}
|
}
|
||||||
getCurrentEditor().protyle.app.plugins.forEach(item => {
|
getCurrentEditor().protyle.app.plugins.forEach(item => {
|
||||||
item.eventBus.emit("mobile-keyboard-show");
|
item.eventBus.emit("mobile-keyboard-show");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue