From 7acedfbed8a802174a0df0361973c6bbcc5949eb Mon Sep 17 00:00:00 2001 From: zyuhel Date: Thu, 6 Apr 2023 17:53:03 +0300 Subject: [PATCH] fix(): enable go to second level comments in battles (#1079) * 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 --- frontend/html/posts/show/battle.html | 2 +- frontend/static/js/components/CommentScrollArrow.vue | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/html/posts/show/battle.html b/frontend/html/posts/show/battle.html index 4e4a3ea3c..29be30bac 100644 --- a/frontend/html/posts/show/battle.html +++ b/frontend/html/posts/show/battle.html @@ -86,7 +86,7 @@ {% endblock %} {% block comments %} -
+
diff --git a/frontend/static/js/components/CommentScrollArrow.vue b/frontend/static/js/components/CommentScrollArrow.vue index 50e86257c..c7832606c 100644 --- a/frontend/static/js/components/CommentScrollArrow.vue +++ b/frontend/static/js/components/CommentScrollArrow.vue @@ -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() );