Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/8074

Vanessa2230d12fbb8c
diff --git a/app/src/assets/scss/mobile.scss b/app/src/assets/scss/mobile.scss
index cf457f9b5f..9f7c2997e8 100644
--- a/app/src/assets/scss/mobile.scss
+++ b/app/src/assets/scss/mobile.scss
@@ -144,6 +144,7 @@
@include text-clamp(1);
flex: 1;
font-size: 17px;
+ min-height: 30px;
}
}
diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.ts
index 53da614cbe..f201738a5d 100644
--- a/app/src/mobile/util/keyboardToolbar.ts
+++ b/app/src/mobile/util/keyboardToolbar.ts
@@ -394,7 +394,7 @@ export const initKeyboardToolbar = () => {
return;
}
const buttonElement = hasClosestByMatchTag(target, "BUTTON");
- if (!buttonElement || buttonElement.getAttribute("disabled")) {
+ if (!buttonElement || buttonElement.getAttribute("disabled") || getSelection().rangeCount === 0) {
return;
}
event.preventDefault();
diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.ts
index 62a34f1bde..ad5a31f27d 100644
--- a/app/src/mobile/util/touch.ts
+++ b/app/src/mobile/util/touch.ts
@@ -36,7 +36,7 @@ export const handleTouchEnd = (event: TouchEvent) => {
target.tagName === "SPAN" && window.webkit?.messageHandlers &&
!hasClosestByAttribute(target, "data-type", "NodeBlockQueryEmbed")) {
// ios 长按行内元素弹出菜单
- const types = target.getAttribute("data-type").split(" ")
+ const types = (target.getAttribute("data-type") || "").split(" ")
if (types.includes("inline-memo")) {
editor.protyle.toolbar.showRender(editor.protyle, target);
}