diff --git a/src-electron/main/window/window-website.ts b/src-electron/main/window/window-website.ts index 5da82048c3..63d2a22ebb 100644 --- a/src-electron/main/window/window-website.ts +++ b/src-electron/main/window/window-website.ts @@ -29,7 +29,7 @@ export async function createWebsiteWindow(lang?: string) { height: 720, show: true, title: 'Website Stream', - useContentSize: true, + useContentSize: PLATFORM !== 'darwin', width: 1280, }, lang, @@ -102,8 +102,15 @@ export async function createWebsiteWindow(lang?: string) { return { action: 'deny' }; }); - setAspectRatio(); - websiteWindow.on('resize', setAspectRatio); + if (PLATFORM === 'darwin') { + websiteWindow.setAspectRatio(16 / 9, { + height: websiteWindow.getSize()[1] - websiteWindow.getContentSize()[1], + width: 0, + }); + } else { + setAspectRatio(); + websiteWindow.on('resize', setAspectRatio); + } const video: Video = { id: websiteWindow.getMediaSourceId(),