mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Render slash commands popup below chat input text area on home page
This commit is contained in:
parent
3e17ab438a
commit
aad7528d1b
1 changed files with 5 additions and 0 deletions
|
@ -367,6 +367,11 @@ export const ChatInputArea = forwardRef<HTMLTextAreaElement, ChatInputProps>((pr
|
|||
<PopoverContent
|
||||
onOpenAutoFocus={(e) => e.preventDefault()}
|
||||
className={`${props.isMobileWidth ? "w-[100vw]" : "w-full"} rounded-md`}
|
||||
side="top"
|
||||
align="center"
|
||||
/* Offset below text area on home page (i.e where conversationId is unset) */
|
||||
sideOffset={props.conversationId ? 0 : 80}
|
||||
alignOffset={0}
|
||||
>
|
||||
<Command className="max-w-full">
|
||||
<CommandInput
|
||||
|
|
Loading…
Reference in a new issue