mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-11 09:17:20 -04:00
Prevent post images going off screen
This commit is contained in:
committed by
always-be-closing[bot]
parent
cc271b2cc3
commit
bbd43f57bc
@@ -13,6 +13,7 @@
|
||||
@import 'members';
|
||||
@import 'harvests';
|
||||
@import 'seeds';
|
||||
@import 'posts';
|
||||
@import 'crops';
|
||||
|
||||
@import 'homepage';
|
||||
|
||||
5
app/assets/stylesheets/posts.scss
Normal file
5
app/assets/stylesheets/posts.scss
Normal file
@@ -0,0 +1,5 @@
|
||||
.post-content {
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user