diff --git a/pages/customprompts/mzta-custom-prompts.css b/pages/customprompts/mzta-custom-prompts.css index 78ccf3e3..b0a341cd 100644 --- a/pages/customprompts/mzta-custom-prompts.css +++ b/pages/customprompts/mzta-custom-prompts.css @@ -316,6 +316,16 @@ input.input_additional[type="text"]{ display: none;; } +.api_additional_info_show{ + display: flex; + flex-direction: column; + justify-content: space-between; + height: 100%; + padding: 3px; + margin-top: 5px; + background-color: #409df3; +} + @media (prefers-color-scheme: dark) { body { background-color: #1C1B22; @@ -372,8 +382,7 @@ input.input_additional[type="text"]{ background-color: rgb(88, 25, 0); } - .api_additional_info, .api_additional_info_toggle{ + .api_additional_info, .api_additional_info_toggle, .api_additional_info_show{ background-color: #0f2437; } - } \ No newline at end of file diff --git a/pages/customprompts/mzta-custom-prompts.js b/pages/customprompts/mzta-custom-prompts.js index 1f9f70bd..c364d929 100644 --- a/pages/customprompts/mzta-custom-prompts.js +++ b/pages/customprompts/mzta-custom-prompts.js @@ -753,6 +753,8 @@ function handleCancelClick(e) { tr.querySelector('.chatgpt_web_project_output').value = tr.querySelector('.chatgpt_web_project_show').innerText; tr.querySelector('.chatgpt_web_custom_gpt_output').value = tr.querySelector('.chatgpt_web_custom_gpt_show').innerText; tr.querySelector('.api_additional_info_toggle').innerText = browser.i18n.getMessage('customPrompts_show_additional_info') + ' [API]'; + tr.querySelector('.api_additional_info_show').style.display = 'block'; + hideItemRowEditor(tr); } @@ -941,8 +943,8 @@ function loadPromptsList(values){
__MSG_prefs_OptionText_chatgpt_web_project__:` + values.chatgpt_web_project + `
__MSG_prefs_OptionText_chatgpt_web_custom_gpt__:` + values.chatgpt_web_custom_gpt + `
-
__MSG_customPrompts_show_additional_info_show__ [API] -
__MSG_prefs_Connection_type__:` + values.api_type + `
+
+
__MSG_prefs_Connection_type__:
` + values.api_type + `