react-native-paper icon indicating copy to clipboard operation
react-native-paper copied to clipboard

fix(text-input): very long input label truncated when scaled

Open seb-zabielski opened this issue 1 year ago • 1 comments

Motivation

The label in the TextInput component (both flat and outlined) is truncated when it is longer than the available width. This is expected behaviour, but the issue occurs when the label is moved over an input (focus on input or input with a value). The entire label is scaled, which causes the label to continue to be truncated even though we have space to show the rest of the content.

Goal

Increase maximum text width to the maximum possible space.

Related issue

#4350

Test plan

Use TextInput with very long label. You can use example app

Simulator Screenshot - iPhone 15 Pro - 2024-05-21 at 10 51 48

Simulator Screenshot - iPhone 15 Pro - 2024-05-21 at 10 51 16

seb-zabielski avatar May 21 '24 09:05 seb-zabielski

Hey @seb-zabielski, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

callstack-bot avatar May 21 '24 09:05 callstack-bot