mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-04 21:29:12 +00: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user