lichess-org / mobile

Lichess mobile app v2
GNU General Public License v3.0
1.29k stars 190 forks source link

Puzzle score fonts #1090

Open Riahiamirreza opened 1 week ago

Riahiamirreza commented 1 week ago

What is the problem?

Sometimes when playing tactics, I see the font size of the scores for single digit scores are larger. The below screenshots demonstrate it.

Here the third box, which is a red box with digit 6, its size is not equal to other single digit boxes: image

Here the gray box: image

Steps to reproduce the bug

I'm not really sure how to reproduce it, I just encountered it a couple of times.

App version

0.12.0

Device Info

Android, Samsung

Additional information

No response

tom-anders commented 1 week ago

Hmm, judging from the Screenshots it looks like it only happens for negative single-digit numbers, but not for positive or two-digit, right?

Riahiamirreza commented 1 week ago

@tom-anders I tried to reproduce it and and I think you're correct. I didn't observed any positive single-digit number with this issue. But every negative single-digit number had this issue.

rhenandias commented 6 days ago

I believe this is also happening with positive numbers; however, the size difference is almost imperceptible.

For example, in -18 and +8, there is a size difference in the digit 8, but the most noticeable difference is with the -9 that comes right after.

Screenshot_2024-10-14-22-48-22-071_org.lichess.mobileV2.jpg

Screenshot_2024-10-14-22-48-22-071_org.lichess.mobileV2~2.jpg

I think it has more to do with the font size adjusting to the available space in the badge.