diff --git a/app/assets/stylesheets/scss/comments.scss b/app/assets/stylesheets/scss/comments.scss index 4bcba128..37c9a460 100644 --- a/app/assets/stylesheets/scss/comments.scss +++ b/app/assets/stylesheets/scss/comments.scss @@ -13,4 +13,12 @@ .comments--count { z-index: 0; margin-top: -2em; +} + +.comments--body { + overflow: visible; +} + +.comments--content { + overflow: hidden; } \ No newline at end of file diff --git a/app/views/shared/_comments.html.haml b/app/views/shared/_comments.html.haml index d52e593b..a29aba27 100644 --- a/app/views/shared/_comments.html.haml +++ b/app/views/shared/_comments.html.haml @@ -7,7 +7,7 @@ .media .pull-left %img.img-rounded.answerbox--img{src: gravatar_url(comment.user)} - .media-body + .media-body.comments--body %h6.media-heading.answerbox--question-user= user_screen_name comment.user - if user_signed_in? .pull-right @@ -24,7 +24,7 @@ %a{href: '#', name: 'ab-report', data: { a_id: comment.id }} %i.fa.fa-exclamation-triangle Report - %p= comment.content + %p.comments--content= comment.content - if user_signed_in? .form-group.has-feedback{name: 'ab-comment-new-group', 'data-a-id' => a.id} %input.form-control.comments--box{type: :text, placeholder: 'Comment...', name: 'ab-comment-new', data: {a_id: a.id }}