From cd08265406cc9e38b384b256aecdc463d4269664 Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Wed, 27 Aug 2025 06:02:56 +0200 Subject: [PATCH] ui: refactor display of review threads on pr view (#8138) * refactored to untangle comment headers of different styles of comments from each other * fixed misalignments * improved consistency * fixed missing avatar rounding * made reactions aligned with content * fixed text in the "Outdated" label overflowing into the toggle icon Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8138 Reviewed-by: Beowulf --- templates/repo/diff/comment_form.tmpl | 14 +-- .../repo/issue/view_content/conversation.tmpl | 106 +++++++++--------- tests/e2e/pr-review.test.e2e.ts | 2 +- tests/integration/comment_roles_test.go | 69 +++++++----- tests/integration/pull_review_test.go | 6 +- web_src/css/repo.css | 70 +++++++++--- web_src/css/review.css | 22 ++-- web_src/css/themes/theme-forgejo-dark.css | 5 - web_src/css/themes/theme-forgejo-light.css | 5 - 9 files changed, 171 insertions(+), 128 deletions(-) diff --git a/templates/repo/diff/comment_form.tmpl b/templates/repo/diff/comment_form.tmpl index bb29583059..6dcba36c9e 100644 --- a/templates/repo/diff/comment_form.tmpl +++ b/templates/repo/diff/comment_form.tmpl @@ -1,5 +1,5 @@ {{if and $.root.SignedUserID (not $.Repository.IsArchived)}} -
+ {{$.root.CsrfTokenHtml}} @@ -25,22 +25,22 @@ {{end}} -