From 75b04ffe04faf057ee291b670697c5cfbad85b24 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Tue, 4 Jun 2019 20:02:28 +1200 Subject: [PATCH] attempting to make posts appear nice on mobile --- app/views/posts/show.html.haml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/app/views/posts/show.html.haml b/app/views/posts/show.html.haml index dc20c7193..8c5858ce2 100644 --- a/app/views/posts/show.html.haml +++ b/app/views/posts/show.html.haml @@ -53,16 +53,14 @@ = render "comments", post: @post - .col-4.col-xs-12 - = render @post.author - - - unless @post.crops.empty? - %hr/ - .row - .col-md-12 - %h3 Crops mentioned in this post + .col-md-4.col-12 + .row + .col-12= render @post.author + - unless @post.crops.empty? + .col-12 + %h3.h3 Crops mentioned in this post - @post.crops.each do |c| - .col-md-6= render 'crops/thumbnail', crop: c + .col-6= render 'crops/thumbnail', crop: c