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

Vanessa875f00398e18
diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.ts
index 2a51945009..efc8539557 100644
--- a/app/src/plugin/API.ts
+++ b/app/src/plugin/API.ts
@@ -53,11 +53,11 @@ export class Menu {
this.menu.popup(options, options.isLeft);
}
- fullscreen(position: { x: number; y: number }) {
+ fullscreen(position: "bottom" | "all" = "all") {
if (this.isOpen) {
return;
}
- this.menu.popup({x: position.x, y: position.y});
+ this.menu.fullscreen(position);
}
close() {
diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.ts
index 351d0d5577..f01bacdd2b 100644
--- a/app/src/plugin/index.ts
+++ b/app/src/plugin/index.ts
@@ -18,7 +18,7 @@ export class Plugin {
public addTopBar(options: {
icon: string,
title: string,
- position: "right",
+ position?: "right",
callback: (evt: MouseEvent) => void
}) {
const iconElement = document.createElement("div");