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"> +