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

Vanessaa41a03d38e6e
diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.ts
index f7f784e4a7..87ee6f1593 100644
--- a/app/src/plugin/index.ts
+++ b/app/src/plugin/index.ts
@@ -8,6 +8,7 @@ import {getAllEditor, getAllModels} from "../layout/getAll";
import {Tab} from "../layout/Tab";
import {resizeTopBar, setPanelFocus} from "../layout/util";
import {getDockByType} from "../layout/tabUtil";
+import {setTabPosition} from "../window/setHeader";
///#else
import {MobileCustom} from "../mobile/dock/MobileCustom";
/// #endif
@@ -19,7 +20,6 @@ import {Constants} from "../constants";
import {uninstall} from "./uninstall";
import {addPluginDock, afterLoadPlugin, loadPlugins} from "./loader";
import {normalizeStoragePath} from "../util/pathName";
-import {setTabPosition} from "../window/setHeader";
export class Plugin {
private app: App;
@@ -225,7 +225,9 @@ export class Plugin {
iconElement.addEventListener("click", options.callback);
iconElement.setAttribute("data-location", options.position || "right");
resizeTopBar();
+ /// #if !MOBILE
setTabPosition(true);
+ /// #endif
}
if (isMobile() && window.siyuan.storage) {
if (!window.siyuan.storage[Constants.LOCAL_PLUGINTOPUNPIN].includes(iconElement.id)) {