forum: fixup forum vote layout issue.

Fix problem with forum votes being laid out in a vertical list instead
of a horizontal list. Broken in 5780ed57.
This commit is contained in:
evazion
2021-01-21 04:14:09 -06:00
parent c9570e698b
commit 748fcdddcf
2 changed files with 4 additions and 6 deletions

View File

@@ -44,9 +44,9 @@
<li class="moderation-report-notice">Reported (<%= link_to pluralize(forum_post.moderation_reports.length, "report"), moderation_reports_path(search: { model_type: "ForumPost", model_id: forum_post.id }) %>)</li>
<% end %>
<% if forum_post.bulk_update_request.present? %>
<ul class="votes" id="forum-post-votes-for-<%= forum_post.id %>">
<menu class="votes" id="forum-post-votes-for-<%= forum_post.id %>">
<%= render "forum_post_votes/list", votes: forum_post.votes, forum_post: forum_post %>
</ul>
</menu>
<% end %>
</menu>

View File

@@ -24,10 +24,8 @@ article.forum-post {
display: none;
}
menu {
ul.votes {
margin: 0.5em 0;
}
menu.votes {
margin: 0.5em 0;
}
}