From 70afa97b801eeaf66d50bd8b0e211ee49fe8588e Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Wed, 5 Jun 2019 08:35:39 +1200 Subject: [PATCH] only shrink the member card on the homepage --- app/assets/stylesheets/homepage.scss | 20 +++++++++++--------- app/views/posts/show.html.haml | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/app/assets/stylesheets/homepage.scss b/app/assets/stylesheets/homepage.scss index 67924d4ae..a697ce6ca 100644 --- a/app/assets/stylesheets/homepage.scss +++ b/app/assets/stylesheets/homepage.scss @@ -51,15 +51,17 @@ } @include media-breakpoint-down(sm) { - .seed-card { - width: 100%; - min-height: 80px; - align: center; - } - .member-card { - width: 150px; - min-height: 80px; - align: center; + .homepage-cards { + .seed-card { + width: 100%; + min-height: 80px; + align: center; + } + .member-card { + width: 150px; + min-height: 80px; + align: center; + } } } diff --git a/app/views/posts/show.html.haml b/app/views/posts/show.html.haml index 8c5858ce2..aa7546935 100644 --- a/app/views/posts/show.html.haml +++ b/app/views/posts/show.html.haml @@ -54,8 +54,8 @@ = render "comments", post: @post .col-md-4.col-12 + = render @post.author .row - .col-12= render @post.author - unless @post.crops.empty? .col-12 %h3.h3 Crops mentioned in this post