fix: the text in the textarea is not visible in dark mode

This commit is contained in:
molvqingtai 2024-10-10 05:19:43 +08:00
parent de97d05528
commit d75a191ded

View file

@ -52,7 +52,7 @@ const MessageInput = forwardRef<HTMLTextAreaElement, MessageInputProps>(
onKeyDown={handleKeyDown} onKeyDown={handleKeyDown}
autoFocus={autoFocus} autoFocus={autoFocus}
maxLength={maxLength} maxLength={maxLength}
className="box-border resize-none whitespace-pre-wrap break-words border-none bg-gray-50 pb-5 [field-sizing:content] focus:ring-0 focus:ring-offset-0" className="box-border resize-none whitespace-pre-wrap break-words border-none bg-gray-50 pb-5 text-primary [field-sizing:content] focus:ring-0 focus:ring-offset-0"
rows={2} rows={2}
value={value} value={value}
onCompositionStart={onCompositionStart} onCompositionStart={onCompositionStart}