Single line input text wrap issue

Single line input wrap and look so ugly. anyone know how to fix this?

You have two options:

  1. Keep the text on a single line and hide anything that extends beyond the horizontal limit of your input, or

  2. Allow the text to wrap onto multiple lines and let your input grow vertically to accommodate those lines.

Which do you prefer?

thnaks! trying to do option 1 on native mobile.

Click on your text element and set the vertical height to a fixed value. I usually use 25px, but this also depends on your font size. Ideally, choose a height that accommodates only the height of the first line of text

thanks!!! This works but doesn’t make sense.

It does the ugly wrapping at a fixed height of 44px, but not at 43px with font Inter 18 weight 400…why?

The goal is to make it as large as possible without the ugly wrapping. this makes it easier for users to tap. I wanted 56px but that’s not possible i guess.

maybe this is the better option.

i can get it to wrap on multiple lines - but it wont grow the size of the single line input. how do you get the input to grow?

Take a look here:

Editor here

ah!! yes - this works perfectly….but it’s in web. not native mobile.

Sorry :melting_face:
You can’t reproduce it in native mobile?
I don’t have any project in native mobile, sorry for the misunderstood.

still very helpful!!! thnks

1 Like