From: Tom Hughes Date: Sun, 28 Feb 2010 08:41:10 +0000 (+0000) Subject: Clamp the maximum width and height of user images. This ensures they can't X-Git-Tag: live~6389^2~67 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/6ee7bc57f17fad6596d91a0b2fa3ca4ea51c2ac8?ds=sidebyside;hp=92339552d19d5d291f5401c28c9d4dd1f1a5533e Clamp the maximum width and height of user images. This ensures they can't get too big but means we don't get any upscaling. --- diff --git a/public/stylesheets/common.css b/public/stylesheets/common.css index 0a5969a7c..1d56b1464 100644 --- a/public/stylesheets/common.css +++ b/public/stylesheets/common.css @@ -706,11 +706,13 @@ abbr.geo { } img.user_image { - width: 100px; + max-width: 100px; + max-height: 100px; border: 1px solid black; } img.user_thumbnail { - width: 50px; + max-width: 50px; + max-height: 100px; border: 1px solid black; }