css: switch comments and forum posts to flexbox.

This commit is contained in:
evazion
2019-09-25 23:36:55 -05:00
parent b8744cd2c4
commit 37eb6d0a4d
10 changed files with 22 additions and 63 deletions

View File

@@ -9,7 +9,6 @@
<% end %>
</div>
<%= render :partial => "comments/partials/show/comment", :collection => [comment] %>
<div class="clearfix"></div>
<% end %>
<% end %>
<% end %>

View File

@@ -16,7 +16,6 @@
<%= link_to(image_tag(post.preview_file_url), post_path(post)) %>
</div>
<%= render "comments/partials/index/list", post: post, comments: post.comments.visible(CurrentUser.user).last(6), page: :comments %>
<div class="clearfix"></div>
<% end %>
<% end %>
<% end %>

View File

@@ -21,8 +21,6 @@
<% end %>
</div>
<div class="clearfix"></div>
<% if CurrentUser.is_member? %>
<div class="new-comment">
<p><%= link_to "Post comment", new_comment_path(comment: { post_id: post.id }), :class => "expand-comment-response" %></p>

View File

@@ -64,6 +64,5 @@
<% end %>
<% end %>
</div>
<div class="clearfix"></div>
</article>
<% end %>

View File

@@ -9,7 +9,6 @@
<% end %>
</div>
<%= render :partial => "comments/partials/show/comment", :collection => [@comment] %>
<div class="clearfix"></div>
<% end %>
</div>
</div>