Skip to content

Commit e4c93c1

Browse files
committed
Merge pull request coderwall#204 from carlwoodward/324-styling-issues-in-comments
Styling issues in comments
2 parents ac5758d + 55f7143 commit e4c93c1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

app/assets/stylesheets/protip.css.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ body.protip-single {
487487
.comment-list {
488488
padding-bottom: 10px;
489489

490-
> li {
490+
li.comment {
491491
//margin: 0 70px 30px 70px;
492492
margin: 5% 10%;
493493

app/views/comments/_comment.html.haml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
%li.cf{:class => top_comment?(comment, comment_counter) ? "top-comment" : "" , :id => "comment_#{comment.id}"}
1+
%li.cf.comment{:class => top_comment?(comment, comment_counter) ? "top-comment" : "" , :id => "comment_#{comment.id}"}
22
%header.cf
33
.comment-avatar
44
=image_tag(users_image_path(comment.user), :class => 'avatar')
@@ -7,8 +7,7 @@
77
%a.like{:href =>like_protip_comment_path(comment.commentable.try(:public_id), comment.id), 'data-remote' => 'true', 'data-method' => :post, :class => comment_liked_class(comment), :rel => "nofollow"}
88
=comment_likes(comment)
99
.comment
10-
%p
11-
=raw sanitize(formatted_comment(comment.body))
10+
=raw sanitize(formatted_comment(comment.body))
1211
- if can_edit_comment?(comment)
1312
.edit-comment.hidden
1413
=form_for [comment.commentable, comment] do |f|

0 commit comments

Comments
 (0)