Skip to content

Commit f633478

Browse files
committed
more tweaks
1 parent c2ce5dc commit f633478

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

templates/repo/graph/commits.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
{{- end -}}
2929
</a>
3030
</span>
31-
<span class="message mr-2">{{RenderCommitMessage $commit.Subject $.RepoLink $.Repository.ComposeMetas}}</span>
32-
<span class="tags">
31+
<span class="message df ac mr-2">{{RenderCommitMessage $commit.Subject $.RepoLink $.Repository.ComposeMetas}}</span>
32+
<span class="tags df ac">
3333
{{range $commit.Refs}}
3434
{{$refGroup := .RefGroup}}
3535
{{if eq $refGroup "pull"}}
@@ -61,7 +61,7 @@
6161
{{end}}
6262
{{end}}
6363
</span>
64-
<span class="author">
64+
<span class="author df ac mr-2">
6565
{{$userName := $commit.Commit.Author.Name}}
6666
{{if $commit.User}}
6767
{{if $commit.User.FullName}}
@@ -72,7 +72,7 @@
7272
<img class="ui avatar image" src="{{AvatarLink $commit.Commit.Author.Email}}" alt=""/>{{$userName}}
7373
{{end}}
7474
</span>
75-
<span class="time">{{$commit.Date}}</span>
75+
<span class="time df ac">{{$commit.Date}}</span>
7676
{{ end }}
7777
</li>
7878
{{ end }}

web_src/less/features/gitgraph.less

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
height: 24px;
6565
line-height: 24px;
6666
white-space: nowrap;
67+
display: flex;
68+
align-items: center;
6769

6870
.node-relation {
6971
font-family: "Bitstream Vera Sans Mono", "Courier", monospace;
@@ -109,11 +111,8 @@
109111
background-color: rgba(0, 0, 0, .05);
110112
}
111113

112-
li a.button {
113-
padding-top: 2px;
114-
padding-bottom: 2px;
115-
vertical-align: top;
116-
margin-top: 2px;
114+
.tags a.button {
115+
padding: 2px 4px;
117116
}
118117

119118
.sha.label {

0 commit comments

Comments
 (0)