-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Enable auto expanding textarea #86
Enable auto expanding textarea #86
Conversation
@albertdbio is attempting to deploy a commit to the morphic Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On it! |
Ahh I see the reason why the pr is 70px. Just noticed the previous open issue perhaps the other contributor can give it a try. |
@Techno-o76 want to give the requested changes a try? |
@albertdbio |
Hey @albertdbio, I've created a v0.1.8 branch, so could you change the base branch to this one? |
Hey @miurla, I added the bunlock file from rc 0.1.8 |
Thank you!! |
Oh but that also means that react-textarea-autosize is missing in that bun.lockb. |
This replaces the input box with an auto expanding textarea.
However by default when the text area expand, the border radius will eventually cause it to look oval.
We can solve this issue by reducing the border radius each increment.
The key insight is that a border radius of 32 provided the same effect as rounded-full.
Therefore we can decrement it in an algorithmic manner.
Also the behavior of enter is maintained, that is, enter submits while shift+enter adds a new line.