Show selection info when action is not zero and hide messages area by default. see #412

This commit is contained in:
mic 2025-06-05 22:33:54 +02:00
parent 5ab784b88d
commit 5d6f0ba38d

View file

@ -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") {