diff --git a/app/javascript/src/styles/common/messages.scss b/app/javascript/src/styles/common/messages.scss index a8f3f9323..db2ba5578 100644 --- a/app/javascript/src/styles/common/messages.scss +++ b/app/javascript/src/styles/common/messages.scss @@ -1,9 +1,10 @@ div.list-of-messages { margin: 1em 0; + > * + * { margin-top: 2em; } + article.message { display: flex; - margin-top: 2em; word-wrap: break-word; padding: 5px; diff --git a/app/javascript/src/styles/common/utilities.scss b/app/javascript/src/styles/common/utilities.scss index fc9485a33..2b5a2f4e7 100644 --- a/app/javascript/src/styles/common/utilities.scss +++ b/app/javascript/src/styles/common/utilities.scss @@ -68,6 +68,7 @@ $spacer: 0.25rem; /* 4px */ .align-top { vertical-align: top; } .align-middle { vertical-align: middle; } +.flex-1 { flex: 1 1 0%; } .flex-auto { flex: 1 1 auto; } .items-center { align-items: center; } .justify-center { justify-content: center; } diff --git a/app/javascript/src/styles/specific/comments.scss b/app/javascript/src/styles/specific/comments.scss index 3cc16479d..4530c5b9f 100644 --- a/app/javascript/src/styles/specific/comments.scss +++ b/app/javascript/src/styles/specific/comments.scss @@ -17,18 +17,6 @@ div#c-comments { div.post { display: flex; margin-bottom: 4em; - - div.preview { - width: 154px; - height: 154px; - margin-right: 30px; - overflow: hidden; - text-align: center; - } - - div.comment-section { - flex: 1; - } } } } diff --git a/app/views/comments/_index_by_comment.html.erb b/app/views/comments/_index_by_comment.html.erb index 206ba5a98..8e58bae78 100644 --- a/app/views/comments/_index_by_comment.html.erb +++ b/app/views/comments/_index_by_comment.html.erb @@ -3,12 +3,10 @@ <% dtext_data = DText.preprocess(@comments.map(&:body)) %> <% @comments.each do |comment| %> - <%= tag.div id: "post_#{comment.post.id}", **PostPreviewComponent.new(post: comment.post).article_attrs("post") do %> -