From f3a44431205f23592a17efba753f1087bfcf2cf0 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 13 Sep 2023 13:18:30 +0100 Subject: [PATCH] Remove unusual margins and line-height from comments This allows them to follow normal conventions used elsewhere, as well as removing some custom css. --- app/assets/stylesheets/common.scss | 9 --------- app/views/browse/changeset.html.erb | 8 ++++++-- app/views/notes/show.html.erb | 4 +++- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index bc971de2b..395e449a1 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -804,15 +804,6 @@ tr.turn:hover { } } - .note-comments li, .changeset-comments li { - margin: $lineheight/2 0; - - p { - margin: 10px 6px 0 6px; - line-height: 1.5; - } - } - .subscribe-buttons input { font-size: 90%; line-height: 15px; diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index b5c360a03..9acbd05ae 100644 --- a/app/views/browse/changeset.html.erb +++ b/app/views/browse/changeset.html.erb @@ -46,7 +46,9 @@ — <%= t("javascripts.changesets.show.hide_comment") %> <% end %> - <%= comment.body.to_html %> +
+ <%= comment.body.to_html %> +
<% elsif current_user and current_user.moderator? %>
  • @@ -57,7 +59,9 @@ :user => link_to(comment.author.display_name, user_path(comment.author))) %> — <%= t("javascripts.changesets.show.unhide_comment") %> - <%= comment.body.to_html %> +
    + <%= comment.body.to_html %> +
  • <% end %> <% end %> diff --git a/app/views/notes/show.html.erb b/app/views/notes/show.html.erb index 2378d8c2e..3bb97b484 100644 --- a/app/views/notes/show.html.erb +++ b/app/views/notes/show.html.erb @@ -34,7 +34,9 @@ <% @note_comments.drop(1).each do |comment| %>
  • <%= note_event(comment.event, comment.created_at, comment.author) %> - <%= comment.body.to_html %> +
    + <%= comment.body.to_html %> +
  • <% end %> -- 2.39.5