mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 21:29:13 +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) {
|
function fillCommandInPrompt(command) {
|
||||||
|
let chatTooltip = document.getElementById("chat-tooltip");
|
||||||
|
chatTooltip.style.display = "none";
|
||||||
|
|
||||||
let chatInput = document.getElementById("chat-input");
|
let chatInput = document.getElementById("chat-input");
|
||||||
chatInput.value = "/" + command;
|
chatInput.value = "/" + command + " ";
|
||||||
|
chatInput.classList.add("option-enabled");
|
||||||
|
chatInput.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
function onChatInput() {
|
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;
|
text-align: left;
|
||||||
font-size: medium;
|
font-size: medium;
|
||||||
}
|
}
|
||||||
|
div#chat-tooltip:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
svg.new-convo-button {
|
svg.new-convo-button {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
|
|||||||
Reference in New Issue
Block a user