From 328876db5c760dc1c2bda1fed1e6daab285a8e2f Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 9 Aug 2013 10:15:51 +0200 Subject: Fix image scaling issues when image has only one dimension smaller than the limit (#1489274) Other small code improvements. --- skins/classic/addressbook.css | 3 ++- skins/larry/addressbook.css | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'skins') diff --git a/skins/classic/addressbook.css b/skins/classic/addressbook.css index 415142e0c..9575ae25f 100644 --- a/skins/classic/addressbook.css +++ b/skins/classic/addressbook.css @@ -357,7 +357,8 @@ body.iframe, } #contactpic img { - width: 60px; + max-width: 60px; + max-height: 80px; } #contactpic.droptarget.hover { diff --git a/skins/larry/addressbook.css b/skins/larry/addressbook.css index 090e54c7b..6bf9426c4 100644 --- a/skins/larry/addressbook.css +++ b/skins/larry/addressbook.css @@ -219,7 +219,7 @@ } #contactpic img { - width: 112px; + max-width: 112px; visibility: inherit; } -- cgit v1.2.3