Skip to content

Commit

Permalink
Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
gmartincor committed Nov 7, 2024
1 parent 29dad4f commit b170061
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
14 changes: 6 additions & 8 deletions app/assets/stylesheets/application/member-card.scss
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
}
Expand Down Expand Up @@ -77,10 +75,10 @@
flex-direction: column;
justify-content: space-between;
height: 100%;

}

&__description {
margin-bottom: 10px;
color: #666;
font-size: 15px;

Expand Down
2 changes: 1 addition & 1 deletion app/views/users/_member_card.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="card-wrapper">
<div class="to-member-card__wrapper">
<div class="to-member-card">
<div class="to-member-card__header">
<div class="to-member-card__header__avatar"><%= image_tag avatar_url(member.user, 48) %></div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</div>
</div>

<div class="card-container to-member-cards">
<div class="to-member-cards">
<%= render partial: 'member_card', collection: @member_view_models, as: :member %>
</div>

Expand Down

0 comments on commit b170061

Please sign in to comment.