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;
} }
@ -59,10 +59,10 @@ export const ChatInput: FC<Props> = ({ onSend, messageIsStreaming }) => {
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}