diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 9659f1cb..34f3557a 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1414,5 +1414,9 @@ "prefs_OptionText_chatgpt_web_custom_data_info2": { "message": "You can find the correct value in the browser URL field when you open the related ChatGPT page.", "description": "" + }, + "customPrompts_Properties": { + "message": "Properties", + "description": "" } } \ No newline at end of file diff --git a/pages/customprompts/mzta-custom-prompts.css b/pages/customprompts/mzta-custom-prompts.css index d96b29ca..423254f1 100644 --- a/pages/customprompts/mzta-custom-prompts.css +++ b/pages/customprompts/mzta-custom-prompts.css @@ -135,6 +135,15 @@ table .sort.desc { font-style: italic; } +.field_title{ + font-weight: bold; +} + +.field_title_s{ + font-weight: bold; + font-size: small; +} + #txtIdNew, .id_output{ text-transform: lowercase; } diff --git a/pages/customprompts/mzta-custom-prompts.html b/pages/customprompts/mzta-custom-prompts.html index d83bc66f..8f16223e 100644 --- a/pages/customprompts/mzta-custom-prompts.html +++ b/pages/customprompts/mzta-custom-prompts.html @@ -27,29 +27,39 @@ - -
- +

[__MSG_customPrompts_form_label_ID_rules__]
- +
- + +
+

+ +
+
+ +

@@ -63,19 +73,10 @@
- +
- -
- -
* __MSG_customPrompts_form_required_fields__
@@ -89,8 +90,8 @@ __MSG_customPrompts_form_label_ID__ __MSG_customPrompts_form_label_Name__ __MSG_customPrompts_form_label_Text__ - __MSG_customPrompts_add_to_menu__ - Properties +   + __MSG_customPrompts_Properties__   diff --git a/pages/customprompts/mzta-custom-prompts.js b/pages/customprompts/mzta-custom-prompts.js index e61d392c..8d9debe5 100644 --- a/pages/customprompts/mzta-custom-prompts.js +++ b/pages/customprompts/mzta-custom-prompts.js @@ -98,20 +98,6 @@ document.addEventListener('DOMContentLoaded', async () => { }); }); - // document.addEventListener('click', (e) => { - // // Check if the click was outside the textarea or suggestion list - // const isClickInsideTextarea = e.target.closest('.editor'); - // const isClickInsideAutocompleteList = e.target.closest('.autocomplete-list'); - - // if (!isClickInsideTextarea && !isClickInsideAutocompleteList) { - // textareas.forEach(textarea => { - // const container = textarea.closest('.autocomplete-container'); - // const autocompleteList = container.querySelector('.autocomplete-list'); - // hideSuggestions(autocompleteList); - // }); - // } - // }); - i18n.updateDocument(); //To add a new item @@ -452,23 +438,27 @@ function loadPromptsList(values){
- ` + type_output + ` + __MSG_customPrompts_add_to_menu__: +
+ ` + type_output + ` ` + ` +

+ __MSG_customPrompts_form_label_Action__: +
` + action_output + ` + ` + + ` + - Action: ` + action_output + ` - ` + - ` -