From dc2f581c7e248ae8c36ec4ae268a10b557a1bf2b Mon Sep 17 00:00:00 2001 From: mic Date: Tue, 16 Jul 2024 22:50:00 +0200 Subject: [PATCH] showing the current prompt name in the chatgpt window. fixes #20 --- _locales/de/messages.json | 4 ++++ _locales/en/messages.json | 4 ++++ _locales/fr/messages.json | 4 ++++ _locales/it/messages.json | 4 ++++ js/mzta-chatgpt.js | 8 ++++++++ js/mzta-menus.js | 2 +- mzta-background.js | 11 ++++++----- 7 files changed, 31 insertions(+), 6 deletions(-) diff --git a/_locales/de/messages.json b/_locales/de/messages.json index 0e1979f7..6486dfc2 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -378,5 +378,9 @@ "importPrompts_invalidPrompts": { "message": "Die Datei, die Sie importieren möchten, enthält keine gültigen Prompts.", "description": "" + }, + "currently_used_prompt": { + "message": "Derzeit verwendeter Prompt-Name", + "description": "" } } \ No newline at end of file diff --git a/_locales/en/messages.json b/_locales/en/messages.json index b6f5fc79..82ee1781 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -378,5 +378,9 @@ "importPrompts_invalidPrompts": { "message": "The file you're trying to import does not contain any valid prompts.", "description": "" + }, + "currently_used_prompt": { + "message": "Currently used prompt name", + "description": "" } } \ No newline at end of file diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json index b26f8a4a..76919b58 100644 --- a/_locales/fr/messages.json +++ b/_locales/fr/messages.json @@ -378,5 +378,9 @@ "importPrompts_invalidPrompts": { "message": "Le fichier que vous essayez d'importer ne contient aucune prompt valide.", "description": "" + }, + "currently_used_prompt": { + "message": "Nom du prompt actuellement utilisé", + "description": "" } } \ No newline at end of file diff --git a/_locales/it/messages.json b/_locales/it/messages.json index 6bfc1e3e..3fee6be5 100644 --- a/_locales/it/messages.json +++ b/_locales/it/messages.json @@ -378,5 +378,9 @@ "importPrompts_invalidPrompts": { "message": "Il file che stai cercando di importare non contiene alcun prompt valido.", "description": "" + }, + "currently_used_prompt": { + "message": "Nome del prompt attualmente utilizzato", + "description": "" } } \ No newline at end of file diff --git a/js/mzta-chatgpt.js b/js/mzta-chatgpt.js index a0cbcd5c..03140558 100644 --- a/js/mzta-chatgpt.js +++ b/js/mzta-chatgpt.js @@ -155,6 +155,7 @@ function addCustomDiv(prompt_action,tabId,mailMessageId) { style.textContent += "#mzta-custom_loading{height:50px;display:none;}"; style.textContent += "#mzta-custom_textarea{color:black;padding:1px;font-size:15px;width:100%;}"; style.textContent += "#mzta-custom_info{text-align:center;width:100%;padding-bottom:10px;font-size:15px;}"; + style.textContent += "#mzta-prompt-name{font-size:13px;font-style:italic;color:#919191;position:fixed;bottom:75px;;left:0;padding-left:5px;}"; // Add