mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09:00 
			
		
		
		
	Backport #23751 Fix the UI alignment by the way (adding some `gt-mr-xx`) Before:  After:  Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		@@ -28,10 +28,10 @@
 | 
			
		||||
							{{- end -}}
 | 
			
		||||
						</a>
 | 
			
		||||
					</span>
 | 
			
		||||
					<span class="message gt-dib gt-ellipsis gt-mr-2">
 | 
			
		||||
					<span class="message gt-dib gt-ellipsis gt-mr-3">
 | 
			
		||||
						<span>{{RenderCommitMessage $.Context $commit.Subject $.RepoLink $.Repository.ComposeMetas}}</span>
 | 
			
		||||
					</span>
 | 
			
		||||
					<span class="tags gt-df gt-ac">
 | 
			
		||||
					<span class="tags gt-df gt-ac gt-mr-2">
 | 
			
		||||
						{{range $commit.Refs}}
 | 
			
		||||
							{{$refGroup := .RefGroup}}
 | 
			
		||||
							{{if eq $refGroup "pull"}}
 | 
			
		||||
@@ -54,20 +54,20 @@
 | 
			
		||||
									{{svg "octicon-git-branch" 16 "gt-mr-2"}}{{.ShortName}}
 | 
			
		||||
								</a>
 | 
			
		||||
							{{else}}
 | 
			
		||||
								<!-- Unknown ref type {{.Name}} -->
 | 
			
		||||
								<!-- Unknown ref type .Name -->
 | 
			
		||||
							{{end}}
 | 
			
		||||
						{{end}}
 | 
			
		||||
					</span>
 | 
			
		||||
					<span class="author gt-df gt-ac gt-mr-2">
 | 
			
		||||
					<span class="author gt-df gt-ac gt-mr-3">
 | 
			
		||||
						{{$userName := $commit.Commit.Author.Name}}
 | 
			
		||||
						{{if $commit.User}}
 | 
			
		||||
							{{if $commit.User.FullName}}
 | 
			
		||||
								{{$userName = $commit.User.FullName}}
 | 
			
		||||
							{{end}}
 | 
			
		||||
							{{avatar $.Context $commit.User}}
 | 
			
		||||
							<span class="gt-mr-2">{{avatar $.Context $commit.User}}</span>
 | 
			
		||||
							<a href="{{$commit.User.HomeLink}}">{{$userName}}</a>
 | 
			
		||||
						{{else}}
 | 
			
		||||
							{{avatarByEmail $.Context $commit.Commit.Author.Email $userName}}
 | 
			
		||||
							<span class="gt-mr-2">{{avatarByEmail $.Context $commit.Commit.Author.Email $userName}}</span>
 | 
			
		||||
							{{$userName}}
 | 
			
		||||
						{{end}}
 | 
			
		||||
					</span>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user