Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use {{auto-height-textarea}} modifier on sidebar #70

Merged
merged 11 commits into from
Mar 20, 2023

Conversation

jeffdaley
Copy link
Contributor

@jeffdaley jeffdaley commented Mar 6, 2023

Adds an auto-height-textarea modifier and applies it to the sidebar inputs.

Our current textareas are a hard-coded 4 rows tall. This is overkill for something like "Target version":

CleanShot 2023-03-06 at 11 19 36@2x

On the other hand, summaries longer than a sentence get cut off:

CleanShot 2023-03-06 at 14 17 50

The new inputs grow (or shrink) according to their content:

CleanShot 2023-03-06 at 14 24 01

CleanShot 2023-03-06 at 14 23 34

with the title and summary fields having a min-height:

CleanShot 2023-03-06 at 14 24 51

@jeffdaley jeffdaley changed the title Jeffdaley/auto height textarea modifier Use {{auto-height-textarea}} modifier on sidebar Mar 6, 2023
@jeffdaley jeffdaley marked this pull request as ready for review March 6, 2023 19:27
@jeffdaley jeffdaley requested a review from a team as a code owner March 6, 2023 19:27
Copy link
Collaborator

@jfreda jfreda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@jeffdaley jeffdaley merged commit b7ddadf into main Mar 20, 2023
@jeffdaley jeffdaley deleted the jeffdaley/auto-height-textarea-modifier branch March 20, 2023 14:56
anuragprafulla pushed a commit to razorpay/hermes that referenced this pull request Jun 27, 2023
* Install `ember-modifier`

* `auto-height-textarea` modifier

* Write tests

* Apply modifier to customEditableField

* Cleanup

* Handle delete case

* Adjust overflow, apply to title and summary

* Update yarn.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants