logos-innovation-lab / Kurate

https://kurate.vercel.app/
1 stars 5 forks source link

feat: textarea resizes as text is added/removed #209

Closed vojtechsimetka closed 1 year ago

vojtechsimetka commented 1 year ago

Resolves #205

So this automatically resizes the textarea to fit the content. The minimal height of the textarea is the height of the placeholder text but we can change that.

There are two minor issues which I don't think we need to be bothered with:

  1. Going between empty and non-empty state changes slightly the height of the input field
  2. Inputing any value automatically stretches the textarea to fit 2 rows. This is visible if the placeholder text fits single line otherwise not an issue
vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
kurate ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 17, 2023 at 2:07PM (UTC)