Commit 63d08eccf43477aca3eb99b4b819b48cd73cfb4d

Authored by Caio Almeida
Committed by Daniela Feitosa
1 parent f57df53b

Do not distort images when resizing them

(ActionItem1890)
Showing 1 changed file with 8 additions and 8 deletions   Show diff stats
public/stylesheets/application.css
@@ -1268,8 +1268,8 @@ a.comment-picture { @@ -1268,8 +1268,8 @@ a.comment-picture {
1268 } 1268 }
1269 1269
1270 .comment-replies .comment-picture img { 1270 .comment-replies .comment-picture img {
1271 - width: 32px;  
1272 - height: 32px; 1271 + max-width: 32px;
  1272 + max-height: 32px;
1273 } 1273 }
1274 1274
1275 .article-comment .comment-replies .button-bar { 1275 .article-comment .comment-replies .button-bar {
@@ -2091,8 +2091,8 @@ input.disabled { @@ -2091,8 +2091,8 @@ input.disabled {
2091 2091
2092 .common-profile-list-block img { 2092 .common-profile-list-block img {
2093 border: none; 2093 border: none;
2094 - width: 50px;  
2095 - height: 50px; 2094 + max-width: 50px;
  2095 + max-height: 50px;
2096 } 2096 }
2097 2097
2098 .box-2 .common-profile-list-block span, 2098 .box-2 .common-profile-list-block span,
@@ -5554,8 +5554,8 @@ h1#agenda-title { @@ -5554,8 +5554,8 @@ h1#agenda-title {
5554 padding: 1px; 5554 padding: 1px;
5555 border: 1px solid #ccc; 5555 border: 1px solid #ccc;
5556 margin: 4px 3px 0 0; 5556 margin: 4px 3px 0 0;
5557 - width: 20px;  
5558 - height: 20px; 5557 + max-width: 20px;
  5558 + max-height: 20px;
5559 } 5559 }
5560 5560
5561 .profile-wall-image { 5561 .profile-wall-image {
@@ -5583,8 +5583,8 @@ h1#agenda-title { @@ -5583,8 +5583,8 @@ h1#agenda-title {
5583 5583
5584 #profile-network .upload_image .profile-network-text span img, 5584 #profile-network .upload_image .profile-network-text span img,
5585 #profile-activity .upload_image .profile-activity-text span img { 5585 #profile-activity .upload_image .profile-activity-text span img {
5586 - width: auto;  
5587 - height: auto; 5586 + max-width: none;
  5587 + max-height: none;
5588 } 5588 }
5589 5589
5590 #profile-network .upload_image .profile-network-text img, 5590 #profile-network .upload_image .profile-network-text img,