From 89869dda52048f65f494430f72a419b902d62706 Mon Sep 17 00:00:00 2001 From: Gabriel Manika Koeb Date: Thu, 15 Feb 2024 20:01:39 -0300 Subject: [PATCH] =?UTF-8?q?Style/melhora=20resolu=C3=A7=C3=A3o=20de=20foto?= =?UTF-8?q?s=20de=20perfil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Rodrigo Gyodai --- app/assets/stylesheets/navbar.scss | 4 +++ .../connections/_connection_cards.html.erb | 4 ++- app/views/home/index.html.erb | 12 ++++--- app/views/posts/_form.html.erb | 34 +++++++++++-------- app/views/profiles/show.html.erb | 5 +-- app/views/shared/_navbar.html.erb | 4 ++- 6 files changed, 41 insertions(+), 22 deletions(-) diff --git a/app/assets/stylesheets/navbar.scss b/app/assets/stylesheets/navbar.scss index 65d421b..53866d4 100644 --- a/app/assets/stylesheets/navbar.scss +++ b/app/assets/stylesheets/navbar.scss @@ -21,4 +21,8 @@ .badge-container{ position: relative !important; +} + +.dropdown-profile-picture{ + width: 5rem !important; } \ No newline at end of file diff --git a/app/views/connections/_connection_cards.html.erb b/app/views/connections/_connection_cards.html.erb index 1a84fa5..7a948fc 100644 --- a/app/views/connections/_connection_cards.html.erb +++ b/app/views/connections/_connection_cards.html.erb @@ -2,7 +2,9 @@
<% if connection_profile.photo.present? %> - <%= image_tag connection_profile.photo_attachment, width: '85rem', alt: 'Foto de perfil', class: 'profile-picture rounded rounded-circle px-2' %> +
+ <%= image_tag connection_profile.photo_attachment, width: '85rem', alt: 'Foto de perfil', class: 'img-cover profile-picture rounded rounded-circle px-2' %> +
<% else %> <%= image_tag 'default_portfoliorrr_photo.png', width: '85rem', alt: 'Foto de perfil', class: 'profile-picture rounded rounded-circle px-2' %> <% end %> diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index d44588b..b7dbb37 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -5,9 +5,11 @@