From fe443c8a898664b4668b85a87824ba0152432b00 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 6 Sep 2025 17:07:56 +0300 Subject: [PATCH] fix(next): window border cut-off on macOS --- apps/server/src/routes/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server/src/routes/index.ts b/apps/server/src/routes/index.ts index 79a40f186..b8deaf056 100644 --- a/apps/server/src/routes/index.ts +++ b/apps/server/src/routes/index.ts @@ -5,7 +5,7 @@ import attributeService from "../services/attributes.js"; import config from "../services/config.js"; import optionService from "../services/options.js"; import log from "../services/log.js"; -import { isDev, isElectron } from "../services/utils.js"; +import { isDev, isElectron, isWindows } from "../services/utils.js"; import protectedSessionService from "../services/protected_session.js"; import packageJson from "../../package.json" with { type: "json" }; import assetPath from "../services/asset_path.js"; @@ -42,7 +42,7 @@ function index(req: Request, res: Response) { platform: process.platform, isElectron, hasNativeTitleBar: isElectron && options.nativeTitleBarVisible === "true", - hasBackgroundEffects: isElectron && options.backgroundEffects === "true", + hasBackgroundEffects: isWindows && isElectron && options.backgroundEffects === "true", mainFontSize: parseInt(options.mainFontSize), treeFontSize: parseInt(options.treeFontSize), detailFontSize: parseInt(options.detailFontSize),