fix syntax

This commit is contained in:
Mckay Wrigley 2023-03-18 17:56:55 -06:00
parent fe7d1a6ab2
commit 396fe4ec6f
1 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@ import { IconSend } from "@tabler/icons-react";
import { FC, KeyboardEvent, useEffect, useRef, useState } from "react"; import { FC, KeyboardEvent, useEffect, useRef, useState } from "react";
interface Props { interface Props {
messageIsStreaming: boolean, messageIsStreaming: boolean;
onSend: (message: Message) => void; onSend: (message: Message) => void;
} }
@ -57,13 +57,13 @@ export const ChatInput: FC<Props> = ({ onSend, messageIsStreaming }) => {
ref={textareaRef} ref={textareaRef}
className="rounded-lg pl-4 pr-8 py-3 w-full focus:outline-none max-h-[280px] dark:bg-[#40414F] dark:border-opacity-50 dark:border-neutral-800 dark:text-neutral-100 border border-neutral-300 shadow text-neutral-900" className="rounded-lg pl-4 pr-8 py-3 w-full focus:outline-none max-h-[280px] dark:bg-[#40414F] dark:border-opacity-50 dark:border-neutral-800 dark:text-neutral-100 border border-neutral-300 shadow text-neutral-900"
style={{ style={{
resize: "none", resize: "none",
bottom: `${textareaRef?.current?.scrollHeight}px`, bottom: `${textareaRef?.current?.scrollHeight}px`,
height: 'auto', height: "auto",
minHeight: '100px', minHeight: "100px",
maxHeight: '400px', maxHeight: "400px",
overflow: 'auto', overflow: "auto"
}} }}
placeholder="Type a message..." placeholder="Type a message..."
value={content} value={content}
rows={1} rows={1}