Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Decrease font size of soil match percent, use adjustsFontSizeToFit #1696

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

knipec
Copy link
Contributor

@knipec knipec commented Jul 3, 2024

Description

Another attempt at preventing the "100%" from wrapping (or truncating) -- this time by decreasing the font size and using adjustsfontSizeToFit onto one line.

Related Issues

Addresses #1635
However, I still don't understand why:
a) With 30px or 32px font size, we'd get "100" without the "%" sign, even with adjustsFontSizeToFit?
b) Why font size and Box width are both specified in fixed pixels but not

Before --> After:
-->

And also any individual percentage, like the "100%", will get smaller if it would overflow its box, like this (but note this is not the new 24px font size):

@knipec knipec removed the request for review from shrouxm July 3, 2024 23:37
@knipec
Copy link
Contributor Author

knipec commented Jul 4, 2024

Merging so folks can try it on their devices, and open to Courtney's feedback!

@knipec knipec merged commit 8b43b17 into main Jul 4, 2024
9 checks passed
@knipec knipec deleted the fix/match-tile-percent branch July 4, 2024 00:13
@CourtneyLee333
Copy link

CourtneyLee333 commented Jul 5, 2024

It looks great to me on Android phone and iPad. The smaller font size is just fine. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants