mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
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:
parent
cf8c9c2a3d
commit
7828bd6f2e
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue