Repository navigation
Keep rows readable at large text sizes - #228
Draft
shanesmithdev wants to merge 1 commit into
Draft
shanesmithdev wants to merge 1 commit into
shanesmithdev wants to merge 1 commit into
Conversation
At large system text sizes, rows that sat side by side squeezed their text into narrow columns or cut it off. They now wrap, so a part that won't fit moves whole to the next line: - Log: "· not shown in general logs" beside a guild post's pill - Guilds: "Create a guild" under "Start a public group." - Profile: the follower counts, the activity summary, the current streak, and the unlocked count and XP line of the achievements - Landing: the terms of service and privacy policy links, which also get a minimum height in place of a fixed one The guild pill inside commit text takes its height from its name plus padding, so it grows with the text instead of clipping it. On a profile the handle no longer shrinks: the rank's name gives way first, so the handle stays whole and the level still shows. A joined guild now says "· Joined" after its member count, in place of an icon at the end of the row, so the description keeps the row's full width and the mark scales with the text.
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.
This fixes #227
At very large system text sizes, the app becomes almost unusable. Even at regular text sizes, some Android devices (like a Pixel 9 or Pixel 10) cause the "Notifications" tab bar item to wrap so the word is split across two lines.
This PR intends to make the app slightly more usable at the maximum text size Android allows, making the most of the limited screen space available when the font is so large. Some users with poor eyesight turn this setting up quite high, and the /dev/null app should be functional for them too.
By fixing this for the worst case possible, the side-effect is that we also fix it for the more mild cases (like a Pixel 9 or Pixel 10).
iOS is a whole other issue, and has its own problems with large font sizes. iOS does benefit from the changes in this PR, but additional work is needed to make an iPhone properly usable in this scenario. I'll leave that for another PR.
Blocked on
The bottom tab bar wrapping "Notifications" (the bug in #227) is drawn by NativePHP, so it needs a fix upstream. This stays a draft until that lands and the dependency is bumped here.
The screenshots below were taken with that fix applied locally, so the bottom bar in the "after" shots (and the achievements "before" shots) shows labels cut off with "…" rather than wrapped. That's part of what the
mobile-airfix helps us to achieve.Not covered here
The aim of this PR is a fix for the basic problem: the app should be usable with large system text sizes on Android.
Follow up tasks
Screenshots
Android, dark mode, at the largest system text size.