Repository navigation
Mobile: „În așteptare” no longer shows only „În” on Android - #753
Merged
Merged
Conversation
On a Samsung S24 the status chip and the hours segment broke the label after „În” although their box had room for the whole label, and the box, one line tall, showed only „În”. The text is not too wide (more room and drawing it unscaled changed nothing), Android breaks it anyway. A short label (status chip, segment that is not stacked) now keeps its words together with non-breaking spaces.
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.
On a Samsung Galaxy S24 the status chip on event cards and the „În așteptare” segment on Ore showed only „În”.
The label's box had room for the whole text, but Android broke the line after „În”, and the box, one line tall, showed only the first word. It is not the text width: giving the label more room, or drawing it without font scaling, changed nothing. It is not uppercase, fontWeight or letterSpacing either (none are set on these labels).
Fix: a short label (StatusChip, and SegmentedControl when it is not stacked) keeps its words together with non-breaking spaces. A stacked segment still wraps normally.
Tested on Samsung Galaxy S24 (font size 0.8) and iPhone 14 Pro.