joel1st / championweb

codebase for champion.gg
145 stars 37 forks source link

Max size for champion portrait and scaling fix #33

Open corylulu opened 8 years ago

corylulu commented 8 years ago

Currently, Wukong's portrait is loading the wrong image from ddragon. As seen here: http://champion.gg/champion/MonkeyKing (as of 6.1.1 patch).

It's just loading a 1000x1000px green box and because there is no size limit on the site, it's covering the whole page. This change will prevent that from happening again.

Also for the small champion portraits, added "translateZ(0)" to the transform property to fix the blurriness on Chrome.