improved handling of chatgpt window dimensions

This commit is contained in:
mic 2024-05-03 23:09:19 +02:00
parent 0456874185
commit efe8e9b904

View file

@ -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;