diff --git a/components/Chat/SystemPrompt.tsx b/components/Chat/SystemPrompt.tsx index 09d459e..2a7a7ae 100644 --- a/components/Chat/SystemPrompt.tsx +++ b/components/Chat/SystemPrompt.tsx @@ -53,7 +53,7 @@ export const SystemPrompt: FC = ({ 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}