forked from forgejo/forgejo
Code review UI improvements and bugfixes (#4682)
* Code review UI improvements * More fixes to dark theme * Style fix * Fix to allow add code review comments only on review files tab * More readability dark style fixes * Fix commenting on deleted files. Fixes #4752 * Fix line blame getting for multiple corner cases
This commit is contained in:
parent
756eafaaf6
commit
4befec242a
11 changed files with 100 additions and 32 deletions
|
@ -780,7 +780,7 @@ function initPullRequestReview() {
|
|||
$("#show-outdated-" + id).removeClass('hide');
|
||||
});
|
||||
|
||||
$('.comment-form-reply').on('click', function (e) {
|
||||
$('button.comment-form-reply').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
$(this).hide();
|
||||
var form = $(this).parent().find('.comment-form')
|
||||
|
@ -2649,7 +2649,7 @@ function cancelCodeComment(btn) {
|
|||
var form = $(btn).closest("form");
|
||||
if(form.length > 0 && form.hasClass('comment-form')) {
|
||||
form.addClass('hide');
|
||||
form.parent().find('.comment-form-reply').show();
|
||||
form.parent().find('button.comment-form-reply').show();
|
||||
}else {
|
||||
console.log("Hey");
|
||||
form.closest('.comment-code-cloud').remove()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue