Skip to content

Commit d819635

Browse files
committed
Fix commit status popover and switch to svg icons
1 parent 7009eb9 commit d819635

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

templates/repo/commit_status.tmpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{{if eq .State "pending"}}
2-
<i class="commit-status circle icon yellow"></i>
2+
{{svg "octicon-dot-fill" 18 "commit-status icon text yellow"}}
33
{{end}}
44
{{if eq .State "success"}}
5-
<i class="commit-status check icon green"></i>
5+
{{svg "octicon-check" 18 "commit-status icon text green"}}
66
{{end}}
77
{{if eq .State "error"}}
8-
<i class="commit-status warning icon red"></i>
8+
{{svg "octicon-x" 18 "commit-status icon text red"}}
99
{{end}}
1010
{{if eq .State "failure"}}
11-
<i class="commit-status remove icon red"></i>
11+
{{svg "octicon-x" 18 "commit-status icon text red"}}
1212
{{end}}
1313
{{if eq .State "warning"}}
14-
<i class="commit-status warning sign icon yellow"></i>
14+
{{svg "octicon-alert" 18 "commit-status icon text yellow"}}
1515
{{end}}

templates/repo/commit_statuses.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
{{range .Statuses}}
55
<div class="ui item singular-status df">
66
<span>{{template "repo/commit_status" .}}</span>
7-
<span class="ui f1">{{.Context}} <span class="text grey">{{.Description}}</span></span>
7+
<span class="ui ml-2 f1">{{.Context}} <span class="text grey">{{.Description}}</span></span>
88
{{if .TargetURL}}
9-
<div class="ui"><a href="{{.TargetURL}}" target="_blank" rel="noopener noreferrer">{{$.root.locale.Tr "repo.pulls.status_checks_details"}}</a></div>
9+
<a class="ml-3" href="{{.TargetURL}}" target="_blank" rel="noopener noreferrer">{{$.root.locale.Tr "repo.pulls.status_checks_details"}}</a>
1010
{{end}}
1111
</div>
1212
{{end}}

web_src/js/features/repo-commit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function initCommitStatuses() {
6262

6363
createTippy(this, {
6464
trigger: 'click',
65-
content: this.nextSibling,
65+
content: this.nextElementSibling,
6666
placement: positionRight ? 'right' : 'left',
6767
interactive: true,
6868
});

0 commit comments

Comments
 (0)