@@ -7,6 +7,7 @@ import { Graph, GraphData, Node } from "./model";
77import { cn , GraphRef } from "@/lib/utils" ;
88import { TypeAnimation } from "react-type-animation" ;
99import { DropdownMenu , DropdownMenuContent , DropdownMenuTrigger } from "@/components/ui/dropdown-menu" ;
10+ import { Button } from "@/components/ui/button" ;
1011
1112const AUTH_HEADERS : HeadersInit = import . meta. env . VITE_SECRET_TOKEN
1213 ? { 'Authorization' : `Bearer ${ import . meta. env . VITE_SECRET_TOKEN } ` }
@@ -548,7 +549,7 @@ export function Chat({ messages, setMessages, query, setQuery, selectedPath, set
548549 value = { path ?. start ?. name || "" }
549550 placeholder = "Start typing starting point"
550551 type = "text"
551- icon = { < ChevronDown color = "gray " /> }
552+ icon = { < ChevronDown className = "text-muted-foreground " /> }
552553 node = { path ?. start }
553554 scrollToBottom = { ( ) => containerRef . current ?. scrollTo ( 0 , containerRef . current ?. scrollHeight ) }
554555 />
@@ -559,7 +560,7 @@ export function Chat({ messages, setMessages, query, setQuery, selectedPath, set
559560 onValueChange = { ( { name, id } ) => setPath ( prev => ( { end : { name, id } , start : prev ?. start } ) ) }
560561 placeholder = "Start typing end point"
561562 type = "text"
562- icon = { < ChevronDown color = "gray " /> }
563+ icon = { < ChevronDown className = "text-muted-foreground " /> }
563564 node = { path ?. end }
564565 scrollToBottom = { ( ) => containerRef . current ?. scrollTo ( 0 , containerRef . current ?. scrollHeight ) }
565566 />
@@ -578,7 +579,7 @@ export function Chat({ messages, setMessages, query, setQuery, selectedPath, set
578579 p . nodes . length === selectedPath ?. nodes . length &&
579580 selectedPath ?. nodes . every ( node => p ?. nodes . some ( ( n ) => n . id === node . id ) ) &&
580581 "border-[#ffde21] bg-[#ffde2133]" ,
581- message . graphName !== graph . Id && "opacity-50 bg-gray-200 "
582+ message . graphName !== graph . Id && "opacity-50 bg-secondary "
582583 ) }
583584 title = { message . graphName !== graph . Id ? `Move to graph ${ message . graphName } to use this path` : undefined }
584585 disabled = { message . graphName !== graph . Id }
@@ -642,19 +643,19 @@ export function Chat({ messages, setMessages, query, setQuery, selectedPath, set
642643 < footer className = "flex gap-4 px-4 overflow-hidden min-h-fit" >
643644 < DropdownMenu open = { sugOpen } onOpenChange = { setSugOpen } >
644645 < DropdownMenuTrigger asChild >
645- < button data-name = "lightbulb" className = "p-4 border rounded-md hover:border-[#FF66B3] hover:bg-[#FFF0F7] " >
646+ < button data-name = "lightbulb" className = "p-4 border rounded-md hover:border-primary hover:bg-primary/5 transition-colors " >
646647 < Lightbulb />
647648 </ button >
648649 </ DropdownMenuTrigger >
649650 < DropdownMenuContent align = "start" className = "flex flex-col gap-2 mb-4 w-[81.51dvw] md:w-[20dvw] overflow-y-auto" side = "top" >
650651 { getTip ( "!w-full" ) }
651652 </ DropdownMenuContent >
652653 </ DropdownMenu >
653- < form className = "grow flex items-center border rounded-md px-2" onSubmit = { sendQuery } >
654- < input className = "w-1 grow p-4 rounded-md focus-visible:outline-none" placeholder = "Ask your question" onChange = { handleQueryInputChange } value = { query } />
655- < button disabled = { isSendMessage } className = { `bg-gray-200 p-2 rounded-md ${ ! isSendMessage && 'hover:bg-gray-300' } ` } >
656- < ArrowRight color = "white" />
657- </ button >
654+ < form className = "grow flex items-center border rounded-md px-2 focus-within:border-primary focus-within:ring-1 focus-within:ring-primary/50 transition-colors " onSubmit = { sendQuery } >
655+ < input className = "w-1 grow p-4 rounded-md bg-transparent focus-visible:outline-none" placeholder = "Ask your question" onChange = { handleQueryInputChange } value = { query } />
656+ < Button disabled = { isSendMessage } variant = "default" size = "icon" className = "shrink-0" >
657+ < ArrowRight />
658+ </ Button >
658659 </ form >
659660 </ footer >
660661 </ div >
0 commit comments