From 247ece4b4bc1ac812148c750773cd1059b02ac2f Mon Sep 17 00:00:00 2001 From: Beatrice Olivera Date: Mon, 3 Sep 2018 09:06:52 +0100 Subject: [PATCH] changed profile image size --- app/assets/stylesheets/users/_show.scss | 5 +++++ app/views/users/show.html.erb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/users/_show.scss b/app/assets/stylesheets/users/_show.scss index 90bc12d..906e0f4 100644 --- a/app/assets/stylesheets/users/_show.scss +++ b/app/assets/stylesheets/users/_show.scss @@ -57,3 +57,8 @@ margin-top: 5px; margin-bottom: 5px; } + +.img-profile { + width: 200px; + height: 200px; +} diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 020cacb..17371eb 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -3,7 +3,7 @@
<% if @user.photo.url.nil? %> - <%= image_tag "https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png", class: "img-circle"%> + <%= image_tag "https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png", class: "img-circle img-profile"%> <% else %> <%= cl_image_tag @user.photo, class: "img-circle"%> <% end %>