diff --git a/app/assets/stylesheets/community.scss b/app/assets/stylesheets/community.scss index c06d5c5d2..41e40994d 100644 --- a/app/assets/stylesheets/community.scss +++ b/app/assets/stylesheets/community.scss @@ -4,10 +4,6 @@ pointer-events: none; } - .wide-order-selector { - margin-top: 0; - } - .panel { min-height: auto; margin: 0.375rem 0; diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 88ab4e31c..25f7f641e 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -1856,6 +1856,11 @@ table { } } + .order-links { + margin-bottom: $line-height; + margin-top: $line-height; + } + .comment { line-height: $list-lineheight; margin: $line-height / 4 0; diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 7257f9940..5c48631ec 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -393,6 +393,11 @@ font-size: rem-calc(15); margin-bottom: rem-calc(15); } + + .order-links > li { + font-size: inherit; + margin-bottom: 0; + } } .geozone { diff --git a/app/components/shared/comments_component.html.erb b/app/components/shared/comments_component.html.erb index b6b12f691..cb29bf459 100644 --- a/app/components/shared/comments_component.html.erb +++ b/app/components/shared/comments_component.html.erb @@ -3,15 +3,13 @@
<%= content %> - <%= render "shared/wide_order_selector", i18n_namespace: "comments" %> - <% if current_user %> <%= render "comments/form", { commentable: record, parent_id: nil } %> <% else %> -
<%= render "shared/login_to_comment" %> <% end %> + <%= render "shared/order_links", i18n_namespace: "comments" %> <%= render "comments/comment_list", comments: comment_tree.root_comments %> <%= paginate comment_tree.root_comments %>
diff --git a/app/views/comments/_comment_tree.html.erb b/app/views/comments/_comment_tree.html.erb index c8014178c..3d058eed2 100644 --- a/app/views/comments/_comment_tree.html.erb +++ b/app/views/comments/_comment_tree.html.erb @@ -11,8 +11,6 @@ <% end %> - <%= render "shared/wide_order_selector", i18n_namespace: "comments" %> - <% if user_signed_in? %> <% if comments_closed_for_commentable?(commentable) %>
@@ -30,10 +28,10 @@ valuation: valuation } %> <% end %> <% else %> -
<%= render "shared/login_to_comment" %> <% end %> + <%= render "shared/order_links", i18n_namespace: "comments" %> <%= render "comments/comment_list", comments: comment_tree.root_comments, valuation: valuation %> <%= paginate comment_tree.root_comments %> diff --git a/app/views/shared/_order_links.html.erb b/app/views/shared/_order_links.html.erb index 5bdcdfd56..5266a566c 100644 --- a/app/views/shared/_order_links.html.erb +++ b/app/views/shared/_order_links.html.erb @@ -1,4 +1,4 @@ -