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/14213

Vanessa6d702330c0a3
diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.ts
index c064f19653..3596215253 100644
--- a/app/src/protyle/header/Background.ts
+++ b/app/src/protyle/header/Background.ts
@@ -586,10 +586,16 @@ export class Background {
});
}
});
- menu.element.querySelector(".b3-menu__items").setAttribute("style", "overflow: initial");
+ const itemsElement = menu.element.querySelector(".b3-menu__items")
+ itemsElement.setAttribute("style", "overflow: initial");
+ /// #if MOBILE
+ menu.fullscreen();
+ itemsElement.firstElementChild.setAttribute("style", "padding: 0 8px;height: 100%;");
+ /// #else
const rect = target.getBoundingClientRect();
menu.open({x: rect.left, y: rect.top + rect.height});
menu.element.querySelector("input").focus();
+ /// #endif
}
private getTags(removeTag?: string) {