From 2cb59df9112b49c8b0825a1342f46b8bd318651f Mon Sep 17 00:00:00 2001 From: Joel Keyser Date: Thu, 18 May 2023 15:09:37 -0500 Subject: [PATCH] fix: textarea overflow one char before growing not sure why the default 2px padding wouldn't calculate when to grow properly, but with no padding it seems to grow without issue. --- web/src/modules/topic/components/Node/EditableNode.styles.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/modules/topic/components/Node/EditableNode.styles.tsx b/web/src/modules/topic/components/Node/EditableNode.styles.tsx index 4acf69f0..b9f8ad59 100644 --- a/web/src/modules/topic/components/Node/EditableNode.styles.tsx +++ b/web/src/modules/topic/components/Node/EditableNode.styles.tsx @@ -46,6 +46,7 @@ interface StyledTextareaProps { } export const StyledTextareaAutosize = styled(TextareaAutosize)` + padding: 0; border: 0; resize: none; outline: none;