Skip to content

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

:iphone: https://github.com/siyuan-note/siyuan/issues/10472

Vanessa9445a806ba94
diff --git a/app/src/ai/actions.ts b/app/src/ai/actions.ts
index 25aa433254..f076c5c2b5 100644
--- a/app/src/ai/actions.ts
+++ b/app/src/ai/actions.ts
@@ -229,6 +229,12 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {
</div>
</div>`,
bind(element) {
+ /// #if MOBILE
+ element.setAttribute("style", "height: 100%;padding: 0 16px;");
+ element.querySelectorAll(".b3-menu__separator").forEach(item => {
+ item.remove();
+ })
+ /// #endif
const listElement = element.querySelector(".b3-list");
const inputElement = element.querySelector("input");
inputElement.addEventListener("keydown", (event: KeyboardEvent) => {