Flag on user page should not have both width and height set to preserve aspect ratio

Have found Bugs? You can post it here.
Post Reply
tobbi
Posts: 11
Joined: Thu Dec 19, 2019 12:00 am

On https://pokerth.net/player?u=tobbi you can see that the European flag appears distorted.

That's because the dimensions are fixed to 40x20 px which doesn't fit the aspect ratio.

Only setting the height fixes the issue.
boehmi
Posts: 806
Joined: Wed Mar 17, 2021 12:24 pm
Been thanked: 33 times

Not all flags we have have the same aspect ratio. Some are 2:1, some 3:2 and some have very odd aspect ratios. I guess we could set the width fixed and scale the height accordingly. sp0ck?
tobbi
Posts: 11
Joined: Thu Dec 19, 2019 12:00 am

I feel like setting the height fixed is better because horizontal space is limited, as opposed to virtual space.
User avatar
sp0ck
Posts: 238
Joined: Mon Mar 15, 2021 12:54 pm
Location: Flensburg
Been thanked: 14 times

Using a fixed height only in this case really is a game changer - thank you for reporting! 🤓
tobbi
Posts: 11
Joined: Thu Dec 19, 2019 12:00 am

Spock: same issue applies to the leaderboard.
Post Reply