diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 818e0f4ca..fc958cd69 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -13,6 +13,7 @@ @import 'members'; @import 'harvests'; @import 'seeds'; +@import 'posts'; @import 'crops'; @import 'homepage'; diff --git a/app/assets/stylesheets/posts.scss b/app/assets/stylesheets/posts.scss new file mode 100644 index 000000000..d13acd845 --- /dev/null +++ b/app/assets/stylesheets/posts.scss @@ -0,0 +1,5 @@ +.post-content { + img { + max-width: 100%; + } +} \ No newline at end of file diff --git a/app/views/posts/show.html.haml b/app/views/posts/show.html.haml index f73a8aecf..34f94da9b 100644 --- a/app/views/posts/show.html.haml +++ b/app/views/posts/show.html.haml @@ -39,7 +39,7 @@ = @post.subject = render 'posts/actions', post: @post .card-body - = render 'posts/single', post: @post + .post-content= render 'posts/single', post: @post .card-footer = render 'posts/likes', post: @post