fix: Improve Search input layout and placeholder#734
Open
Fefedu973 wants to merge 1 commit intoPapillonApp:devfrom
Open
fix: Improve Search input layout and placeholder#734Fefedu973 wants to merge 1 commit intoPapillonApp:devfrom
Fefedu973 wants to merge 1 commit intoPapillonApp:devfrom
Conversation
Render the search placeholder as a separate Text so it can ellipsize and be vertically centered, and wrap the TextInput in a flexible container to prevent layout overflow. Import Text from react-native, move font/color styles into the TextInput, force single-line input (multiline=false, numberOfLines=1), and adjust sizing (flexShrink, width/minWidth) and padding to ensure consistent appearance across platforms (Android/iOS).
Contributor
Author
Dans certaines langues, le texte wrap sur la ligne et donc le texte est pas centré dans le champ de recherche, c'est pour obliger à rester sur une ligne et ellipsis au cas où ça dépasse |
Contributor
Author
Contributor
|
C'est un peu over-engineeré pour ce que c'est je trouve, y'a possiblement moyen de juste rendre la TextInput ellipsis |
Contributor
Author
|
J'ai cherché et j'ai pas trouvé le moyen de faire en sorte que le placeholder soit tronqué... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Render the search placeholder as a separate Text so it can ellipsize and be vertically centered, and wrap the TextInput in a flexible container to prevent layout overflow. Import Text from react-native, move font/color styles into the TextInput, force single-line input (multiline=false, numberOfLines=1), and adjust sizing (flexShrink, width/minWidth) and padding to ensure consistent appearance across platforms (Android/iOS).
Règles de contribution
Caution
Afin de garantir une application stable et pérenne dans le temps, nous t'invitons à vérifier que tu as bien respecté les règles de contribution. Sans cela, ta Pull Request ne pourra pas être examinée.