From ec11ff4ef7dfb19e4645fbf6ee76e5bd91d9f0b1 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Tue, 28 Mar 2023 01:59:46 +0800 Subject: [PATCH 1/2] fix --- templates/repo/graph/svgcontainer.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/graph/svgcontainer.tmpl b/templates/repo/graph/svgcontainer.tmpl index 12c2cb4eb9963..26528ef81ad4c 100644 --- a/templates/repo/graph/svgcontainer.tmpl +++ b/templates/repo/graph/svgcontainer.tmpl @@ -14,9 +14,9 @@ {{- else if eq $glyph.Glyph '_' -}} M {{Add (Mul $glyph.Column 5) 0}} {{Add (Mul $glyph.Row 12) 12}} h 10 {{/* */ -}} {{- end -}} - {{- end}}" stroke-width="1" fill="none" id="flow-{{$flow.ID}}-path" stroke-linecap="round"> + {{- end}}" stroke-width="1" fill="none" id="flow-{{$flow.ID}}-path" stroke-linecap="round"> {{range $flow.Commits}} - + {{end}} {{end}} From ae9392ef0280d2cea6a03bafa3c77ecdd88ca7be Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Tue, 28 Mar 2023 02:32:17 +0800 Subject: [PATCH 2/2] fix avatar margin --- templates/repo/graph/commits.tmpl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/repo/graph/commits.tmpl b/templates/repo/graph/commits.tmpl index 0c1e777c34e8b..4a01fefeddc1b 100644 --- a/templates/repo/graph/commits.tmpl +++ b/templates/repo/graph/commits.tmpl @@ -28,10 +28,10 @@ {{- end -}} - + {{RenderCommitMessage $.Context $commit.Subject $.RepoLink $.Repository.ComposeMetas}} - + {{range $commit.Refs}} {{$refGroup := .RefGroup}} {{if eq $refGroup "pull"}} @@ -54,20 +54,20 @@ {{svg "octicon-git-branch" 16 "gt-mr-2"}}{{.ShortName}} {{else}} - + {{end}} {{end}} - + {{$userName := $commit.Commit.Author.Name}} {{if $commit.User}} {{if $commit.User.FullName}} {{$userName = $commit.User.FullName}} {{end}} - {{avatar $.Context $commit.User}} + {{avatar $.Context $commit.User}} {{$userName}} {{else}} - {{avatarByEmail $.Context $commit.Commit.Author.Email $userName}} + {{avatarByEmail $.Context $commit.Commit.Author.Email $userName}} {{$userName}} {{end}}