Prevent post images going off screen

This commit is contained in:
Brenda Wallace
2019-07-08 11:45:10 +12:00
committed by always-be-closing[bot]
parent cc271b2cc3
commit bbd43f57bc
3 changed files with 7 additions and 1 deletions

View File

@@ -13,6 +13,7 @@
@import 'members';
@import 'harvests';
@import 'seeds';
@import 'posts';
@import 'crops';
@import 'homepage';

View File

@@ -0,0 +1,5 @@
.post-content {
img {
max-width: 100%;
}
}

View File

@@ -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