diff --git a/src/interface/web/app/common/colorUtils.ts b/src/interface/web/app/common/colorUtils.ts index 6cd57a64..a7eabb03 100644 --- a/src/interface/web/app/common/colorUtils.ts +++ b/src/interface/web/app/common/colorUtils.ts @@ -42,6 +42,13 @@ export function converColorToBgGradient(color: string) { return `${convertToBGGradientClass(color)} dark:border dark:border-neutral-700`; } +export function convertColorToCaretClass(color: string | undefined) { + if (color && tailwindColors.includes(color)) { + return `caret-${color}-500`; + } + return `caret-orange-500`; +} + export function convertColorToRingClass(color: string | undefined) { if (color && tailwindColors.includes(color)) { return `focus-visible:ring-${color}-500`; diff --git a/src/interface/web/app/components/chatInputArea/chatInputArea.tsx b/src/interface/web/app/components/chatInputArea/chatInputArea.tsx index b60228df..7d349081 100644 --- a/src/interface/web/app/components/chatInputArea/chatInputArea.tsx +++ b/src/interface/web/app/components/chatInputArea/chatInputArea.tsx @@ -37,7 +37,11 @@ import { Popover, PopoverContent } from "@/components/ui/popover"; import { PopoverTrigger } from "@radix-ui/react-popover"; import { Textarea } from "@/components/ui/textarea"; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip"; -import { convertColorToTextClass, convertToBGClass } from "@/app/common/colorUtils"; +import { + convertColorToCaretClass, + convertColorToTextClass, + convertToBGClass, +} from "@/app/common/colorUtils"; import LoginPrompt from "../loginPrompt/loginPrompt"; import { uploadDataForIndexing } from "../../common/chatFunctions"; @@ -494,8 +498,8 @@ export const ChatInputArea = forwardRef((pr