Commit 29f01fe5c835bafc9b127000cc2a2a1d267179a4
1 parent
2d90b1d3
Exists in
master
and in
5 other branches
tried to solve cropping image #187
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
users/templates/users/profile.html
| ... | ... | @@ -45,7 +45,9 @@ |
| 45 | 45 | <div class="row"> |
| 46 | 46 | <div class="col-md-4"> |
| 47 | 47 | {% if user.image %} |
| 48 | - <div style="background-image: url('{{ user.image.url }}'); background-size: 100% 100%; background-repeat: no-repeat; margin-left: 8em;" alt="photoUser" class="img-circle img-responsive img-list-user"></div> | |
| 48 | + <div style="width: 200px; overflow:hidden; margin-left: 8em;"> | |
| 49 | + <img src="{{ user.image.url }}" class="img-circle img-responsive img-list-user" > | |
| 50 | + </div> | |
| 49 | 51 | {% else %} |
| 50 | 52 | {% if user.gender == 'M' %} |
| 51 | 53 | <img src="{% static 'img/male_avatar.png' %}" alt="Avatar" class="img-circle img-responsive img-list-user" style="margin-left: 8em;"> | ... | ... |