From 0b540dc593f72a6d5c811b139e8279d9f09ed21e Mon Sep 17 00:00:00 2001 From: Shusui MOYATANI Date: Mon, 29 Jan 2024 00:37:15 +0900 Subject: [PATCH] fix: limit height of note post form resolve #46 --- src/components/NotePostForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NotePostForm.tsx b/src/components/NotePostForm.tsx index 3e11652..4b8e752 100644 --- a/src/components/NotePostForm.tsx +++ b/src/components/NotePostForm.tsx @@ -384,7 +384,7 @@ const NotePostForm: Component = (props) => { emojiTextAreaRef(el); }} name="text" - class="min-h-[40px] rounded-md border border-border bg-bg ring-border placeholder:text-fg-secondary focus:border-border focus:ring-primary" + class="scrollbar max-h-[40vh] min-h-[4rem] overflow-y-auto rounded-md border border-border bg-bg ring-border placeholder:text-fg-secondary focus:border-border focus:ring-primary" rows={4} placeholder={placeholder(mode())} onInput={handleInput}