From 0494e9d76e9e75356ad41c6b73fd1b0d8f96aad0 Mon Sep 17 00:00:00 2001 From: zyuhel Date: Mon, 3 Apr 2023 22:27:11 +0300 Subject: [PATCH 1/3] fix(): enable go to second level comments in battles #1070 --- frontend/static/js/components/CommentScrollArrow.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/static/js/components/CommentScrollArrow.vue b/frontend/static/js/components/CommentScrollArrow.vue index 50e86257c..a22ede5fb 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", + // Новые реплаи на втором уровне бэтлов + ".post-comments-list > .replies > .reply:not(.comment-is-new) > .reply-replies >.replies > .reply.comment-is-new", ].join() ); From e53f60071b832c945473dd58eb4d33278eb584ed Mon Sep 17 00:00:00 2001 From: zyuhel Date: Mon, 3 Apr 2023 23:09:39 +0300 Subject: [PATCH 2/3] fix(): add .battle-comments class to post comments on battle page --- frontend/html/posts/show/battle.html | 2 +- 1 file changed, 1 insertion(+), 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 %} -
+
From 9c0586259cbc1fcabdff97d9243a1b50ae65a056 Mon Sep 17 00:00:00 2001 From: zyuhel Date: Mon, 3 Apr 2023 23:11:16 +0300 Subject: [PATCH 3/3] fix(): third level comments should be selected only in battles --- frontend/static/js/components/CommentScrollArrow.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/static/js/components/CommentScrollArrow.vue b/frontend/static/js/components/CommentScrollArrow.vue index a22ede5fb..c7832606c 100644 --- a/frontend/static/js/components/CommentScrollArrow.vue +++ b/frontend/static/js/components/CommentScrollArrow.vue @@ -89,7 +89,7 @@ export default { // Новые реплаи на втором уровне к старым реплаям без родительского комментария ".post-comments-list > .replies > .reply:not(.comment-is-new) > .reply.comment-is-new", // Новые реплаи на втором уровне бэтлов - ".post-comments-list > .replies > .reply:not(.comment-is-new) > .reply-replies >.replies > .reply.comment-is-new", + ".battle-comments .post-comments-list > .replies > .reply:not(.comment-is-new) > .reply-replies >.replies > .reply.comment-is-new", ].join() );