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
User avatar
tobbi
Posts: 20
Joined: Thu Dec 19, 2019 12:00 am
Been thanked: 2 times

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: 917
Joined: Wed Mar 17, 2021 12:24 pm
Been thanked: 54 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?
User avatar
tobbi
Posts: 20
Joined: Thu Dec 19, 2019 12:00 am
Been thanked: 2 times

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

Using a fixed height only in this case really is a game changer - thank you for reporting! 🤓
User avatar
tobbi
Posts: 20
Joined: Thu Dec 19, 2019 12:00 am
Been thanked: 2 times

Spock: same issue applies to the leaderboard.
Post Reply