From 5d6f0ba38d093018da6320fe789df9700f456c4b Mon Sep 17 00:00:00 2001 From: mic Date: Thu, 5 Jun 2025 22:33:54 +0200 Subject: [PATCH] Show selection info when action is not zero and hide messages area by default. see #412 --- api_webchat/messagesArea.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api_webchat/messagesArea.js b/api_webchat/messagesArea.js index 0680dded..7af3fec2 100644 --- a/api_webchat/messagesArea.js +++ b/api_webchat/messagesArea.js @@ -93,6 +93,7 @@ messagesAreaStyle.textContent = ` font-size: 0.7rem; color: gray; margin-top: 5px; + display: none; } /* diff viewer */ .added { @@ -276,7 +277,10 @@ class MessagesArea extends HTMLElement { closeButton.addEventListener('click', async () => { browser.runtime.sendMessage({command: "chatgpt_close", window_id: (await browser.windows.getCurrent()).id}); // close window }); - if(promptData.action != 0) { actionButtons.appendChild(actionButton); } + if(promptData.action != 0) { + actionButtons.appendChild(actionButton); + selectionInfo.style.display = "block"; // show selection info + } // diff viewer button if(promptData.prompt_info?.use_diff_viewer == "1") {