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
+1 -1
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}