Skip to content

Commit

Permalink
Render slash commands popup below chat input text area on home page
Browse files Browse the repository at this point in the history
  • Loading branch information
debanjum committed Oct 28, 2024
1 parent 3e17ab4 commit aad7528
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aad7528

Please sign in to comment.