From efe8e9b90426d20f50fa93a0b9bcce83414f7f72 Mon Sep 17 00:00:00 2001 From: mic Date: Fri, 3 May 2024 23:09:19 +0200 Subject: [PATCH] improved handling of chatgpt window dimensions --- mzta-background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mzta-background.js b/mzta-background.js index ec981952..388b899e 100644 --- a/mzta-background.js +++ b/mzta-background.js @@ -175,8 +175,8 @@ async function openChatGPT(promptText, action, curr_tabId) { } function checkScreenDimensions(prefs){ - let width = window.screen.width; - let height = window.screen.height; + let width = window.screen.width - 50; + let height = window.screen.height - 50; if(prefs.chatgpt_win_height > height) prefs.chatgpt_win_height = height - 50; if(prefs.chatgpt_win_width > width) prefs.chatgpt_win_width = width - 50;