improved handling of chatgpt window dimensions
This commit is contained in:
parent
0456874185
commit
efe8e9b904
1 changed files with 2 additions and 2 deletions
|
|
@ -175,8 +175,8 @@ async function openChatGPT(promptText, action, curr_tabId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkScreenDimensions(prefs){
|
function checkScreenDimensions(prefs){
|
||||||
let width = window.screen.width;
|
let width = window.screen.width - 50;
|
||||||
let height = window.screen.height;
|
let height = window.screen.height - 50;
|
||||||
|
|
||||||
if(prefs.chatgpt_win_height > height) prefs.chatgpt_win_height = 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;
|
if(prefs.chatgpt_win_width > width) prefs.chatgpt_win_width = width - 50;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue