hide rogue scrollbar (#69)

This commit is contained in:
Mckay Wrigley 2023-03-22 07:14:24 -06:00 committed by GitHub
parent 4055e84450
commit 37c088a212
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ export const SystemPrompt: FC<Props> = ({ conversation, onChangePrompt }) => {
resize: "none",
bottom: `${textareaRef?.current?.scrollHeight}px`,
maxHeight: "300px",
overflow: "auto"
overflow: `${textareaRef.current && textareaRef.current.scrollHeight > 400 ? "auto" : "hidden"}`
}}
placeholder="Enter a prompt"
value={value}