Commit 0708fbb4500d01262b85c7bab236b3d72bbe84ae
1 parent
c8c8f629
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
problem with last comment
Showing
2 changed files
with
13 additions
and
15 deletions
Show diff stats
plugins/comment_paragraph/public/comment_paragraph_macro.js
| ... | ... | @@ -71,19 +71,15 @@ jQuery(document).ready(function($) { |
| 71 | 71 | var paragraphId = $(this).data('paragraph'); |
| 72 | 72 | hideAllCommentsExcept(paragraphId); |
| 73 | 73 | hideAllSelectedAreasExcept(paragraphId); |
| 74 | - $('.article-body').toggleClass('comment-paragraph-slide-left'); | |
| 75 | - $('#side_comment_' + paragraphId).toggle(); | |
| 76 | - | |
| 77 | - | |
| 78 | -// if($('.comment-paragraph-slide-left').size()==0){ | |
| 79 | -// $('.article-body').addClass('comment-paragraph-slide-left'); | |
| 80 | -// $('#side_comment_' + paragraphId).show(); | |
| 81 | -// $('#side_comment_' + paragraphId).find().show(); | |
| 82 | -// }else{ | |
| 83 | -// $('.article-body').removeClass('comment-paragraph-slide-left'); | |
| 84 | -// $('.side-comment').hide(); | |
| 85 | -// $('.side-comment').find().hide(); | |
| 86 | -// } | |
| 74 | + if($('.comment-paragraph-slide-left').size()==0){ | |
| 75 | + $('.article-body').addClass('comment-paragraph-slide-left'); | |
| 76 | + $('#side_comment_' + paragraphId).show(); | |
| 77 | + $('#side_comment_' + paragraphId).find().show(); | |
| 78 | + }else{ | |
| 79 | + $('.article-body').removeClass('comment-paragraph-slide-left'); | |
| 80 | + $('.side-comment').hide(); | |
| 81 | + $('.side-comment').find().hide(); | |
| 82 | + } | |
| 87 | 83 | $('#comment-bubble').hide(); |
| 88 | 84 | //Loads the comments |
| 89 | 85 | var url = $('#link_to_ajax_comments_' + paragraphId).data('url'); | ... | ... |
plugins/comment_paragraph/public/style.css
| ... | ... | @@ -89,7 +89,7 @@ div[class^='comments_list_toggle_paragraph_'] { |
| 89 | 89 | border-color: #ccc; |
| 90 | 90 | padding: 5px; |
| 91 | 91 | background-color: whitesmoke; |
| 92 | - width: 270px; | |
| 92 | + width: 300px; | |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | div[class^='comment-paragraph-loading-'] { |
| ... | ... | @@ -162,6 +162,8 @@ div[class^='comment-paragraph-loading-'] { |
| 162 | 162 | padding: 0; |
| 163 | 163 | width: 100%; |
| 164 | 164 | text-align: left; |
| 165 | + overflow: visible; | |
| 166 | + line-break: loose; | |
| 165 | 167 | } |
| 166 | 168 | .side-comment .comment-text p { |
| 167 | 169 | margin: 0; |
| ... | ... | @@ -183,7 +185,7 @@ div[class^='comment-paragraph-loading-'] { |
| 183 | 185 | padding-left: 25px; |
| 184 | 186 | } |
| 185 | 187 | #article .side-comment .comment-picture { |
| 186 | - width: 75%; | |
| 188 | + width: 100%; | |
| 187 | 189 | height: auto; |
| 188 | 190 | } |
| 189 | 191 | #article .side-comment .article-comment .comment-details > h4 { | ... | ... |