diff --git a/kallithea/public/css/style.css b/kallithea/public/css/style.css --- a/kallithea/public/css/style.css +++ b/kallithea/public/css/style.css @@ -5065,8 +5065,8 @@ div.comment:target>.comment-wrapp { margin: 5px; } -div.prev-next-comment div.prev-comment, -div.prev-next-comment div.next-comment { +div.comment-prev-next-links div.prev-comment, +div.comment-prev-next-links div.next-comment { display: inline-block; min-width: 150px; margin: 3px 6px; diff --git a/kallithea/public/js/base.js b/kallithea/public/js/base.js --- a/kallithea/public/js/base.js +++ b/kallithea/public/js/base.js @@ -866,10 +866,9 @@ var linkInlineComments = function($first var next_anchor = $($comments.get(i+1)).attr('id'); next = 'Next comment'.format(next_anchor); } - var $div = $(('
'+ - '
{0}
'+ - '
{1}
').format(prev, next)); - $div.prependTo(this); + $(this).find('.comment-prev-next-links').html( + '
{0}
'.format(prev) + + '
{0}
'.format(next)); }); } diff --git a/kallithea/templates/changeset/changeset_file_comment.html b/kallithea/templates/changeset/changeset_file_comment.html --- a/kallithea/templates/changeset/changeset_file_comment.html +++ b/kallithea/templates/changeset/changeset_file_comment.html @@ -5,6 +5,7 @@ ## <%def name="comment_block(co)">
+