Skip to content

Commit

Permalink
fix(): enable go to second level comments in battles (#1079)
Browse files Browse the repository at this point in the history
* fix(): enable go to second level comments in battles

#1070

* fix(): add .battle-comments class to post comments on battle page

* fix(): third level comments should be selected only in battles
  • Loading branch information
zyuhel authored Apr 6, 2023
1 parent fd82ca1 commit 7acedfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/html/posts/show/battle.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
{% endblock %}

{% block comments %}
<div class="post-comments" id="comments">
<div class="post-comments battle-comments" id="comments">
<div class="comment-scroll-arrow-wrapper">
<comment-scroll-arrow />
</div>
Expand Down
2 changes: 2 additions & 0 deletions frontend/static/js/components/CommentScrollArrow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ export default {
".post-comments-list > .replies > .reply.comment-is-new",
// Новые реплаи на втором уровне к старым реплаям без родительского комментария
".post-comments-list > .replies > .reply:not(.comment-is-new) > .reply.comment-is-new",
// Новые реплаи на втором уровне бэтлов
".battle-comments .post-comments-list > .replies > .reply:not(.comment-is-new) > .reply-replies >.replies > .reply.comment-is-new",
].join()
);
Expand Down

0 comments on commit 7acedfb

Please sign in to comment.