ppy / osu

rhythm is just a *click* away!
https://osu.ppy.sh
MIT License
14.65k stars 2.17k forks source link

Fix Argon accuracy counter layout when under 10% and wireframe off #28443

Closed ColdVolcano closed 3 weeks ago

ColdVolcano commented 3 weeks ago

When under 10% accuracy, the argon accuracy counter would leave a blank space between the whole and fractional parts. image

By applying the anchor to the number container and ignoring the label for sizing. we get a consistent visual with the rest of the counters. image Note that moving the anchor to only the container creates the opposite problem (empty spaces when wireframes are visible).

Only problem with this approach would be very long labels not applying it's size to the element in the skin editor, but with current localizations this does not happen.