SimpleChatTCRV:UiCleanup: Switch to icon only buttons and title
This commit is contained in:
parent
bf393380a9
commit
c039447494
|
|
@ -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">🧹 ClearChat</button>
|
||||
<button id="settings">⚙ Settings</button>
|
||||
<button id="clearchat" title="clear current chat">🧹</button>
|
||||
<button id="settings" title="change settings">⚙</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"> ❌ </button>
|
||||
<button id="popover-chatmsg-copy"> 📋 </button>
|
||||
<button id="popover-chatmsg-del" title="delete message"> ❌ </button>
|
||||
<button id="popover-chatmsg-copy" title="copy message text"> 📋 </button>
|
||||
</div>
|
||||
|
||||
<div id="tool-div">
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue