File tree 1 file changed +13
-7
lines changed
exercises/99.final/01.solution.final/src/routes/app/recipients
1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -133,19 +133,25 @@ export function RecipientRoute() {
133
133
</ div >
134
134
135
135
< div className = "border-border flex-shrink-0 border-t p-4" >
136
- < div className = "flex items-center gap-4" >
137
- < input
138
- type = "text"
136
+ < form
137
+ onSubmit = { ( e ) => {
138
+ e . preventDefault ( )
139
+ e . currentTarget . reset ( )
140
+ } }
141
+ className = "flex items-center gap-4"
142
+ >
143
+ < textarea
139
144
placeholder = "Type your message..."
140
- className = "text-foreground-alt placeholder:text-foreground-alt/60 flex-1 rounded-lg px-4 py-3"
145
+ className = "text-foreground-alt placeholder:text-foreground-alt/60 field-sizing-content max-h-[200px] min-h-[48px] flex-1 resize-none rounded-lg px-4 py-3"
146
+ rows = { 1 }
141
147
/>
142
- < Button className = "hidden whitespace-nowrap md:block" >
148
+ < Button type = "submit" className = "hidden whitespace-nowrap md:block" >
143
149
Add to Queue
144
150
</ Button >
145
- < Button className = "block md:hidden" icon >
151
+ < Button type = "submit" className = "block md:hidden" icon >
146
152
< Icon name = "Plus" />
147
153
</ Button >
148
- </ div >
154
+ </ form >
149
155
</ div >
150
156
</ div >
151
157
</ div >
You can’t perform that action at this time.
0 commit comments