Skip to content

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

:bug: Keep window controls above fullscreen floating panels https://github.com/siyuan-note/siyuan/issues/19438

Daniel1bb31a1ab076
diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts
index 1c4a7a7637..c612e6f75e 100644
--- a/app/src/layout/dock/index.ts
+++ b/app/src/layout/dock/index.ts
@@ -30,6 +30,7 @@ import {
import {getDockHotkey} from "./hotkey";
import {resolveDockPanelVisibility} from "./panelVisibility";
import {syncDockEntryOrders} from "../../config/entryVisibility/runtime";
+import {isWindow} from "../../util/functions";
const TYPES = ["file", "outline", "inbox", "bookmark", "tag", "graph", "globalGraph", "backlink", "agentChat"];
const DEFAULT_DOCK_SIZE = 232;
@@ -610,6 +611,13 @@ export class Dock {
if (fullscreenElement && fullscreenElement.clientHeight > 0) {
this.layout.element.setAttribute("data-temp", this.layout.element.style.transform);
this.layout.element.style.transform = "none";
+ // 窗口控制按钮保持在全屏浮动面板上方。
+ if (window.siyuan.config.system.os !== "darwin" && !isWindow()) {
+ const windowControlsElement = document.getElementById("windowControls");
+ if (windowControlsElement) {
+ windowControlsElement.style.zIndex = (++window.siyuan.zIndex).toString();
+ }
+ }
}
}