From 8ecb163fb05a4d18af79da98c011f472bf1d803e Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Wed, 2 Sep 2026 16:47:39 +0900 Subject: [PATCH] web: use textarea for `PullReviewCommentForm` Signed-off-by: Seongmin Lee --- .../repo/pulls/PullReviewCommentForm.svelte | 10 ++++++--- .../components/ui/ButtonGroup.stories.svelte | 16 ++++++++++++-- web/src/lib/components/ui/ButtonGroup.svelte | 22 ++++++++++++++++--- web/src/lib/components/ui/Textarea.svelte | 3 ++- 4 files changed, 42 insertions(+), 9 deletions(-) diff --git a/web/src/lib/components/repo/pulls/PullReviewCommentForm.svelte b/web/src/lib/components/repo/pulls/PullReviewCommentForm.svelte index 4a47f510b..ec9843e95 100644 --- a/web/src/lib/components/repo/pulls/PullReviewCommentForm.svelte +++ b/web/src/lib/components/repo/pulls/PullReviewCommentForm.svelte @@ -6,7 +6,7 @@ import Checkbox from "$lib/components/ui/Checkbox.svelte"; import Tag from "$lib/components/ui/Tag.svelte"; import ErrorAlert from "$lib/components/ui/Error.svelte"; - import Input from "$lib/components/ui/Input.svelte"; + import Textarea from "$lib/components/ui/Textarea.svelte"; import Spinner from "$lib/components/ui/Spinner.svelte"; interface Props { @@ -36,6 +36,8 @@ draft = ""; }); + const rows = $derived(Math.min(draft.split("\n").length, 4)); + const short = (hash: string) => hash.slice(0, 8); @@ -43,12 +45,14 @@ Comment on {short(currentCommit)} - - 1 ? "vertical" : "horizontal"} class="w-full"> +