parent
41dbb5d009
commit
774ffc2287
1 changed files with 8 additions and 3 deletions
|
|
@ -100,6 +100,9 @@ messagesInputStyle.textContent = `
|
||||||
padding-bottom:10px;
|
padding-bottom:10px;
|
||||||
font-size:15px;
|
font-size:15px;
|
||||||
}
|
}
|
||||||
|
#mzta-custom_info span{
|
||||||
|
font-size:0.8em;
|
||||||
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
#messageInputField {
|
#messageInputField {
|
||||||
background-color: #303030;
|
background-color: #303030;
|
||||||
|
|
@ -323,11 +326,13 @@ class MessageInput extends HTMLElement {
|
||||||
const infoDiv = this.shadowRoot.querySelector('#mzta-custom_info');
|
const infoDiv = this.shadowRoot.querySelector('#mzta-custom_info');
|
||||||
|
|
||||||
this._customTextArea.value = "";
|
this._customTextArea.value = "";
|
||||||
|
infoDiv.textContent = browser.i18n.getMessage("chatgpt_win_custom_text");
|
||||||
|
|
||||||
if (currentItem.info && currentItem.info.trim() !== "") {
|
if (currentItem.info && currentItem.info.trim() !== "") {
|
||||||
infoDiv.textContent = currentItem.info;
|
infoDiv.appendChild(document.createElement("br"));
|
||||||
} else {
|
const infoSpan = document.createElement("span");
|
||||||
infoDiv.textContent = browser.i18n.getMessage("chatgpt_win_custom_text");
|
infoSpan.textContent = "[" + browser.i18n.getMessage("customPrompts_form_label_ID") + ": " + currentItem.info + "]";
|
||||||
|
infoDiv.appendChild(infoSpan);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._customTextArea.focus();
|
this._customTextArea.focus();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue