Clamp the maximum width and height of user images. This ensures they can't
authorTom Hughes <tom@compton.nu>
Sun, 28 Feb 2010 08:41:10 +0000 (08:41 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 28 Feb 2010 08:41:10 +0000 (08:41 +0000)
get too big but means we don't get any upscaling.

public/stylesheets/common.css

index 0a5969a7cd3c42211d898ecaef95233442a58686..1d56b146470edb8dc72ee5404c18d373b888de19 100644 (file)
@@ -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;
 }