diff --git a/app/assets/javascripts/comments.js b/app/assets/javascripts/comments.js index c3c2be8ae..a7e85bbf8 100644 --- a/app/assets/javascripts/comments.js +++ b/app/assets/javascripts/comments.js @@ -40,13 +40,7 @@ $("#js-comment-form-" + id).toggle(); }, toggle_arrow: function(id) { - var arrow; - arrow = "span#" + id + "_arrow"; - if ($(arrow).hasClass("icon-arrow-right")) { - $(arrow).removeClass("icon-arrow-right").addClass("icon-arrow-down"); - } else { - $(arrow).removeClass("icon-arrow-down").addClass("icon-arrow-right"); - } + $("span#" + id + "_arrow").toggleClass("fa-minus-square").toggleClass("fa-plus-square"); }, initialize: function() { $("body .js-add-comment-link").each(function() { diff --git a/app/assets/stylesheets/icons.scss b/app/assets/stylesheets/icons.scss index 958ff0500..699220c67 100644 --- a/app/assets/stylesheets/icons.scss +++ b/app/assets/stylesheets/icons.scss @@ -203,10 +203,6 @@ content: "\f00b"; } -.icon-arrow-down::before { - content: "\f0dd"; -} - .icon-arrow-left::before { content: "\f0d9"; } diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index f054df7bc..b800eebf9 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -2116,17 +2116,16 @@ table { padding: $line-height / 4; position: relative; - .relative, - [class^="icon-arrow"] { - padding-left: $line-height / 2; + .relative { + padding-left: rem-calc(18); } - [class^="icon-arrow"] { - font-size: $base-font-size; - left: -20px; + .far { + font-size: $small-font-size; + left: 0; position: absolute; text-decoration: none; - top: -1px; + top: 2px; } .divider { diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index 56667f26d..0f51daac0 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -94,7 +94,7 @@ <%= link_to "", class: "js-toggle-children relative", data: { "id": "#{dom_id(comment)}" } do %> <%= t("shared.hide") %> - + <%= t("comments.comment.responses_collapse", count: comment.children.size) %> <% end %>