From 37c088a2124e20dd47216da4b1cb8e01281fbc28 Mon Sep 17 00:00:00 2001 From: Mckay Wrigley Date: Wed, 22 Mar 2023 07:14:24 -0600 Subject: [PATCH] hide rogue scrollbar (#69) --- components/Chat/SystemPrompt.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}