From b1700616d5c2744b3e41ac54a946bca25e5bf1c1 Mon Sep 17 00:00:00 2001 From: Guillermo Martin Correa <164687739+gmartincor@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:27:44 +0000 Subject: [PATCH] Corrections --- .../stylesheets/application/member-card.scss | 14 ++++++-------- app/views/users/_member_card.html.erb | 2 +- app/views/users/index.html.erb | 2 +- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/app/assets/stylesheets/application/member-card.scss b/app/assets/stylesheets/application/member-card.scss index ba89ddee..80cec27d 100644 --- a/app/assets/stylesheets/application/member-card.scss +++ b/app/assets/stylesheets/application/member-card.scss @@ -1,27 +1,25 @@ -.card-container { +.to-member-cards { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: stretch; gap: 20px; - - @media(max-width: $screen-sm-min) { + @media(max-width: $screen-lg-min) { display: block; } } -.card-wrapper { +.to-member-card__wrapper { width: 48%; - @media (max-width: $screen-sm-min) { + @media (max-width: $screen-lg-min) { width: 100%; } } .to-member-card { & { - margin: 16px 0; width: 100%; max-width: 600px; min-height: 178px; @@ -32,7 +30,7 @@ height: 100%; border-radius: 4px; - @media(max-width: $screen-sm-min) { + @media(max-width: $screen-lg-min) { height: auto; margin: 10px 0; } @@ -77,10 +75,10 @@ flex-direction: column; justify-content: space-between; height: 100%; - } &__description { + margin-bottom: 10px; color: #666; font-size: 15px; diff --git a/app/views/users/_member_card.html.erb b/app/views/users/_member_card.html.erb index 27e5caa2..ccce5197 100644 --- a/app/views/users/_member_card.html.erb +++ b/app/views/users/_member_card.html.erb @@ -1,4 +1,4 @@ -
+
<%= image_tag avatar_url(member.user, 48) %>
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 3cae916d..f333ffa5 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -20,7 +20,7 @@
-
+
<%= render partial: 'member_card', collection: @member_view_models, as: :member %>