Hide command popup & focus on chatInput on selecting command in web app

Style command popup cursor and add highlight to indicate using slash
command
This commit is contained in:
Debanjum Singh Solanky 2024-06-02 16:54:50 +05:30
parent cf8c9c2a3d
commit 7828bd6f2e

View file

@ -724,8 +724,13 @@ To get started, just start typing below. You can also type / to see a list of co
}
function fillCommandInPrompt(command) {
let chatTooltip = document.getElementById("chat-tooltip");
chatTooltip.style.display = "none";
let chatInput = document.getElementById("chat-input");
chatInput.value = "/" + command;
chatInput.value = "/" + command + " ";
chatInput.classList.add("option-enabled");
chatInput.focus();
}
function onChatInput() {
@ -2569,6 +2574,9 @@ To get started, just start typing below. You can also type / to see a list of co
text-align: left;
font-size: medium;
}
div#chat-tooltip:hover {
cursor: pointer;
}
svg.new-convo-button {
width: 20px;