Skip to content

Commit

Permalink
shrink the reason box if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
stepandel committed Nov 6, 2024
1 parent 8367dc0 commit 83af246
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Votes/CastVoteInput/CastVoteInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ function CastVoteInputContent({
placeholder="I believe..."
value={reason || undefined}
onChange={(e) => setReason(e.target.value)}
rows={reason ? undefined : 1}
className="text-sm resize-none rounded-lg border border-line rounded-b-lg focus:outline-none focus:inset-0 focus:shadow-none focus:outline-offset-0 mt-3"
/>
<VoteButtons
Expand Down

0 comments on commit 83af246

Please sign in to comment.