From ed1798f66d30e3755f01e24f8cb4aa5e8b6628a0 Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Fri, 15 Mar 2024 04:01:16 +0900 Subject: [PATCH] Improve commit record's ui in comment list (#26619) Before: ![image](https://github.com/go-gitea/gitea/assets/18380374/795f9941-9989-4045-b0fc-d6dd0262269b) ![image](https://github.com/go-gitea/gitea/assets/18380374/f6505f5e-4248-456e-a98d-e714c6484b2f) After: ![image](https://github.com/go-gitea/gitea/assets/18380374/321dda1e-6999-4851-afff-2e6c8d20367b) ![image](https://github.com/go-gitea/gitea/assets/18380374/182f18d1-2295-4004-852b-c0ebb498b411) --------- Co-authored-by: silverwind (cherry picked from commit ce085b26fc5076b36c55e6a0a30ba8f11105c0bf) --- templates/repo/issue/view_content/comments.tmpl | 16 ++++++++-------- web_src/css/repo.css | 6 +----- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 37ec98a3d..6e585f028 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -148,7 +148,7 @@ {{if eq .RefAction 3}}{{end}} -
+
@@ -164,7 +164,7 @@ {{ctx.Locale.Tr "repo.issues.commit_ref_at" .EventTag $createdStr}} {{end}} -
+
{{svg "octicon-git-commit"}} {{.Content | SanitizeHTML}}
@@ -256,7 +256,7 @@ {{ctx.Locale.Tr "repo.issues.stop_tracking_history" $createdStr}} {{template "repo/issue/view_content/comments_delete_time" dict "ctxData" $ "comment" .}} -