Skip to content

Commit 2050ea2

Browse files
committed
use gap on latest commit ui instead of margin
1 parent fd069a6 commit 2050ea2

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

templates/repo/commit_statuses.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{{if .Statuses}}
22
{{if and (eq (len .Statuses) 1) .Status.TargetURL}}
3-
<a class="commit-statuses tw-align-middle {{.AdditionalClasses}} tw-no-underline" data-tippy="commit-statuses" href="{{.Status.TargetURL}}">
3+
<a class="commit-statuses flex-text-block muted {{.AdditionalClasses}}" data-tippy="commit-statuses" href="{{.Status.TargetURL}}">
44
{{template "repo/commit_status" .Status}}
55
</a>
66
{{else}}
7-
<span class="commit-statuses tw-align-middle {{.AdditionalClasses}}" data-tippy="commit-statuses" tabindex="0">
7+
<span class="commit-statuses flex-text-block muted {{.AdditionalClasses}}" data-tippy="commit-statuses" tabindex="0">
88
{{template "repo/commit_status" .Status}}
99
</span>
1010
{{end}}

templates/repo/latest_commit.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
33
{{else}}
44
{{if .LatestCommitUser}}
5-
{{ctx.AvatarUtils.Avatar .LatestCommitUser 24 "tw-mr-1"}}
5+
{{ctx.AvatarUtils.Avatar .LatestCommitUser 24}}
66
{{if and .LatestCommitUser.FullName DefaultShowFullName}}
77
<a class="muted author-wrapper" title="{{.LatestCommitUser.FullName}}" href="{{.LatestCommitUser.HomeLink}}"><strong>{{.LatestCommitUser.FullName}}</strong></a>
88
{{else}}
99
<a class="muted author-wrapper" title="{{if .LatestCommit.Author}}{{.LatestCommit.Author.Name}}{{else}}{{.LatestCommitUser.Name}}{{end}}" href="{{.LatestCommitUser.HomeLink}}"><strong>{{if .LatestCommit.Author}}{{.LatestCommit.Author.Name}}{{else}}{{.LatestCommitUser.Name}}{{end}}</strong></a>
1010
{{end}}
1111
{{else}}
1212
{{if .LatestCommit.Author}}
13-
{{ctx.AvatarUtils.AvatarByEmail .LatestCommit.Author.Email .LatestCommit.Author.Name 24 "tw-mr-1"}}
13+
{{ctx.AvatarUtils.AvatarByEmail .LatestCommit.Author.Email .LatestCommit.Author.Name 24}}
1414
<span class="author-wrapper" title="{{.LatestCommit.Author.Name}}"><strong>{{.LatestCommit.Author.Name}}</strong></span>
1515
{{end}}
1616
{{end}}

web_src/css/repo.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ td .commit-summary {
117117
.latest-commit {
118118
display: flex;
119119
flex: 1;
120+
gap: 6px;
120121
align-items: center;
121122
overflow: hidden;
122123
text-overflow: ellipsis;
@@ -126,9 +127,6 @@ td .commit-summary {
126127
.latest-commit .sha {
127128
display: none;
128129
}
129-
.latest-commit .commit-summary {
130-
margin-left: 8px;
131-
}
132130
}
133131

134132
.repo-path {
@@ -1701,8 +1699,8 @@ tbody.commit-list {
17011699
white-space: nowrap;
17021700
}
17031701

1704-
.latest-commit .commit-statuses {
1705-
margin-right: 6px;
1702+
.latest-commit .sha.label {
1703+
margin: 0;
17061704
}
17071705

17081706
.latest-commit .message-wrapper {

0 commit comments

Comments
 (0)