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

Vanessabff6f06999db
diff --git a/app/src/ai/actions.ts b/app/src/ai/actions.ts
index 30bbc6725a..ecbc97b51b 100644
--- a/app/src/ai/actions.ts
+++ b/app/src/ai/actions.ts
@@ -166,7 +166,7 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {
});
let customHTML = "";
window.siyuan.storage[Constants.LOCAL_AI].forEach((item: { name: string, memo: string }, index: number) => {
- customHTML += `<div data-action="${escapeAttr(item.memo || item.name)}" data-index="${index}" class="b3-list-item b3-list-item--narrow ariaLabel" aria-label="${escapeAriaLabel(item.memo)}">
+ customHTML += `<div data-action="${escapeAttr(item.memo || item.name)}" data-position="10west" data-index="${index}" class="b3-list-item b3-list-item--narrow ariaLabel" aria-label="${escapeAriaLabel(item.memo)}">
<span class="b3-list-item__text">${escapeHtml(item.name)}</span>
<span data-type="edit" class="b3-list-item__action"><svg><use xlink:href="#iconEdit"></use></svg></span>
</div>`;
diff --git a/app/src/menus/Menu.ts b/app/src/menus/Menu.ts
index 54866d1b37..fa0797f170 100644
--- a/app/src/menus/Menu.ts
+++ b/app/src/menus/Menu.ts
@@ -81,6 +81,7 @@ export class Menu {
private preventDefault(event: KeyboardEvent) {
if (!hasClosestByClassName(event.target as Element, "b3-menu") &&
+ !hasClosestByClassName(event.target as Element, "tooltip") &&
// 移动端底部键盘菜单
!hasClosestByClassName(event.target as Element, "keyboard__bar")) {
event.preventDefault();