From 33e4347dc646e5421855e879d5d2ef144375bb46 Mon Sep 17 00:00:00 2001
From: yp05327 <576951401@qq.com>
Date: Fri, 22 Mar 2024 06:42:25 +0000
Subject: [PATCH 1/3] add
---
templates/repo/commits_list.tmpl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl
index 4eb31e0e8e697..5faf273635c48 100644
--- a/templates/repo/commits_list.tmpl
+++ b/templates/repo/commits_list.tmpl
@@ -19,7 +19,7 @@
{{if .User.FullName}}
{{$userName = .User.FullName}}
{{end}}
- {{ctx.AvatarUtils.Avatar .User 28 "gt-mr-2"}}{{$userName}}
+ {{ctx.AvatarUtils.Avatar .User 28 "gt-mr-2"}}{{$userName}}
{{else}}
{{ctx.AvatarUtils.AvatarByEmail .Author.Email .Author.Name 28 "gt-mr-2"}}
{{$userName}}
From 2b0978a0aadb8b788df4f697c03084bffdb985e8 Mon Sep 17 00:00:00 2001
From: yp05327 <576951401@qq.com>
Date: Mon, 25 Mar 2024 00:58:26 +0000
Subject: [PATCH 2/3] fix
---
templates/repo/commits_list.tmpl | 4 ++--
web_src/css/repo.css | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl
index 4a1db580afe26..f6af142376aba 100644
--- a/templates/repo/commits_list.tmpl
+++ b/templates/repo/commits_list.tmpl
@@ -13,7 +13,7 @@
{{$commitRepoLink := $.RepoLink}}{{if $.CommitRepoLink}}{{$commitRepoLink = $.CommitRepoLink}}{{end}}
{{range .Commits}}
-
+ |
{{$userName := .Author.Name}}
{{if .User}}
{{if .User.FullName}}
@@ -22,7 +22,7 @@
{{ctx.AvatarUtils.Avatar .User 28 "tw-mr-1"}}{{$userName}}
{{else}}
{{ctx.AvatarUtils.AvatarByEmail .Author.Email .Author.Name 28 "tw-mr-1"}}
- {{$userName}}
+ {{$userName}}
{{end}}
|
diff --git a/web_src/css/repo.css b/web_src/css/repo.css
index 2014dfc3708c3..18f28dc4a6e0d 100644
--- a/web_src/css/repo.css
+++ b/web_src/css/repo.css
@@ -2438,6 +2438,7 @@ tbody.commit-list {
.author-wrapper {
max-width: 180px;
+ align-self: center;
}
/* in the commit list, messages can wrap so we can use inline */
From 21e57bfcef6b8b2739c4316cda91d569efd242e2 Mon Sep 17 00:00:00 2001
From: silverwind
Date: Mon, 25 Mar 2024 20:44:48 +0100
Subject: [PATCH 3/3] increase margin
---
templates/repo/commits_list.tmpl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl
index f6af142376aba..bae99241413e7 100644
--- a/templates/repo/commits_list.tmpl
+++ b/templates/repo/commits_list.tmpl
@@ -19,9 +19,9 @@
{{if .User.FullName}}
{{$userName = .User.FullName}}
{{end}}
- {{ctx.AvatarUtils.Avatar .User 28 "tw-mr-1"}}{{$userName}}
+ {{ctx.AvatarUtils.Avatar .User 28 "tw-mr-2"}}{{$userName}}
{{else}}
- {{ctx.AvatarUtils.AvatarByEmail .Author.Email .Author.Name 28 "tw-mr-1"}}
+ {{ctx.AvatarUtils.AvatarByEmail .Author.Email .Author.Name 28 "tw-mr-2"}}
{{$userName}}
{{end}}
|