Skip to content

Commit 3adc92a

Browse files
committed
make textarea autosize
1 parent fc1a724 commit 3adc92a

File tree

1 file changed

+3
-0
lines changed
  • clientv2/src/components/ProfileViewer

1 file changed

+3
-0
lines changed

clientv2/src/components/ProfileViewer/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ const StudentProfilePage: React.FC<StudentProfilePageProps> = ({
297297
{editable ? (
298298
<Textarea
299299
value={studentProfile.bio}
300+
autosize
301+
minRows={2}
302+
maxRows={8}
300303
onChange={(e) => handleInputChange('bio', e.target.value.trimStart())}
301304
/>
302305
) : (

0 commit comments

Comments
 (0)