From eadc69d7551a33c7f6377744a690b35e1f31e6e8 Mon Sep 17 00:00:00 2001 From: mic Date: Tue, 3 Mar 2026 23:30:14 +0100 Subject: [PATCH] ai win positions options added to the prefs page. see #685 --- _locales/en/messages.json | 20 ++++++++++++++++++++ options/mzta-options.css | 6 +----- options/mzta-options.html | 27 +++++++++++++++++++++++++-- 3 files changed, 46 insertions(+), 7 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index bfc1d731..4a1b7ace 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1908,5 +1908,25 @@ "prefs_THStats_2": { "message": "Click here! Try ThunderStats!", "description": "" + }, + "prefs_OptionText_chatgpt_win_pos_text":{ + "message": "AI chat window position", + "description": "" + }, + "prefs_OptionText_chatgpt_win_top":{ + "message": "Top", + "description": "" + }, + "prefs_OptionText_chatgpt_win_left":{ + "message": "Left", + "description": "" + }, + "prefs_chatgpt_win_save_position": { + "message": "Automatically save the window position when using the close button.", + "description": "" + }, + "prefs_chatgpt_win_position_info":{ + "message": "Leave empty to use the default position.", + "description": "" } } diff --git a/options/mzta-options.css b/options/mzta-options.css index 37b55c20..4db12b2f 100644 --- a/options/mzta-options.css +++ b/options/mzta-options.css @@ -69,11 +69,7 @@ div#miczDescription p{ margin-top: 0px; } -input#chatgpt_win_width{ - width: 100px; -} - -input#chatgpt_win_height{ +input.win_prop{ width: 100px; } diff --git a/options/mzta-options.html b/options/mzta-options.html index 449d4320..3e8be70c 100644 --- a/options/mzta-options.html +++ b/options/mzta-options.html @@ -28,7 +28,7 @@ @@ -36,7 +36,30 @@ __MSG_prefs_OptionText_chatgpt_win_dims_info__ __MSG_prefs_OptionText_chatgpt_win_width__ - + + + + + __MSG_prefs_OptionText_chatgpt_win_pos_text__ + + + + + + __MSG_prefs_chatgpt_win_position_info__ + + __MSG_prefs_OptionText_chatgpt_win_left__ + + + + +   + + + __MSG_prefs_chatgpt_win_save_position__