css: replace more css with tailwind-style classes.
This commit is contained in:
@@ -19,12 +19,12 @@
|
||||
<% 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 space-x-4") do %>
|
||||
<%= tag.div id: "post_#{comment.post.id}", **PostPreviewComponent.new(post: comment.post, classes: "post md:flex gap-4").article_attrs do %>
|
||||
<% if policy(comment.post).visible? %>
|
||||
<%= post_preview(comment.post, show_deleted: true) %>
|
||||
<%= post_preview(comment.post, show_deleted: true, classes: "mx-auto") %>
|
||||
<% end %>
|
||||
|
||||
<%= render_comment(comment, dtext_data: dtext_data, context: :index_by_comment, current_user: CurrentUser.user) %>
|
||||
<%= render_comment(comment, dtext_data: dtext_data, classes: "flex-1", context: :index_by_comment, current_user: CurrentUser.user) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user