SimpleChatTCRV:UiCleanup: Switch to icon only buttons and title

This commit is contained in:
hanishkvc 2025-11-19 00:13:18 +05:30
parent bf393380a9
commit c039447494
2 changed files with 7 additions and 6 deletions

View File

@ -27,8 +27,8 @@
<summary class="sameline" id="heading">
<div class="heading flex-grow" > <b> SimpleChat </b> </div>
<div class="flex-nogrow">
<button id="clearchat">&#x1F9F9; ClearChat</button>
<button id="settings">&#x2699; Settings</button>
<button id="clearchat" title="clear current chat">&#x1F9F9;</button>
<button id="settings" title="change settings">&#x2699;</button>
</div>
</summary>
<div id="sessions-div" class="sameline"></div>
@ -45,8 +45,8 @@
</div>
<div id="popover-chatmsg" popover="auto">
<button id="popover-chatmsg-del"> &#x274C; </button>
<button id="popover-chatmsg-copy"> &#x1F4CB; </button>
<button id="popover-chatmsg-del" title="delete message"> &#x274C; </button>
<button id="popover-chatmsg-copy" title="copy message text"> &#x1F4CB; </button>
</div>
<div id="tool-div">

View File

@ -1714,7 +1714,7 @@ class MultiChatUI {
}
elDiv.replaceChildren();
// Btn for creating new chat session
let btnNew = ui.el_create_button("New CHAT", (ev)=> {
let btnNew = ui.el_create_button("NewCHAT", (ev)=> {
if (this.elInUser.disabled) {
console.error(`ERRR:SimpleChat:MCUI:NewChat:Current session [${this.curChatId}] awaiting response, ignoring request...`);
alert("ERRR:SimpleChat\nMCUI:NewChat\nWait for response to pending query, before starting new chat session");
@ -1729,7 +1729,8 @@ class MultiChatUI {
this.new_chat_session(chatIdGot, true);
this.create_session_btn(elDiv, chatIdGot);
ui.el_children_config_class(elDiv, chatIdGot, "session-selected", "");
});
},"NewChat", "+");
btnNew.title = "start a new chat session"
elDiv.appendChild(btnNew);
// Btns for existing chat sessions
let chatIds = Object.keys(this.simpleChats);