Skip to content

Commit ad5ce59

Browse files
authored
1 parent d817b19 commit ad5ce59

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

templates/repo/graph/commits.tmpl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,27 @@
3131
<span class="message gt-dib gt-ellipsis gt-mr-3">
3232
<span>{{RenderCommitMessage $.Context $commit.Subject $.RepoLink $.Repository.ComposeMetas}}</span>
3333
</span>
34-
<span class="tags gt-df gt-ac gt-mr-2">
34+
<span class="commit-refs gt-df gt-ac gt-mr-2">
3535
{{range $commit.Refs}}
3636
{{$refGroup := .RefGroup}}
3737
{{if eq $refGroup "pull"}}
3838
{{if or (not $.HidePRRefs) (SliceUtils.Contains $.SelectedBranches .Name)}}
3939
<!-- it's intended to use issues not pulls, if it's a pull you will get redirected -->
40-
<a class="ui labelled icon button basic tiny gt-mr-2" href="{{$.RepoLink}}/{{if $.Repository.UnitEnabled $.Context $.UnitTypePullRequests}}pulls{{else}}issues{{end}}/{{.ShortName|PathEscape}}">
41-
{{svg "octicon-git-pull-request" 16 "gt-mr-2"}}#{{.ShortName}}
40+
<a class="ui labelled basic tiny button" href="{{$.RepoLink}}/{{if $.Repository.UnitEnabled $.Context $.UnitTypePullRequests}}pulls{{else}}issues{{end}}/{{.ShortName|PathEscape}}">
41+
{{svg "octicon-git-pull-request"}} #{{.ShortName}}
4242
</a>
4343
{{end}}
4444
{{else if eq $refGroup "tags"}}
45-
<a class="ui labelled icon button basic tiny gt-mr-2" href="{{$.RepoLink}}/src/tag/{{.ShortName|PathEscape}}">
46-
{{svg "octicon-tag" 16 "gt-mr-2"}}{{.ShortName}}
45+
<a class="ui labelled basic tiny button" href="{{$.RepoLink}}/src/tag/{{.ShortName|PathEscape}}">
46+
{{svg "octicon-tag"}} {{.ShortName}}
4747
</a>
4848
{{else if eq $refGroup "remotes"}}
49-
<a class="ui labelled icon button basic tiny gt-mr-2" href="{{$.RepoLink}}/src/commit/{{$commit.Rev|PathEscape}}">
50-
{{svg "octicon-cross-reference" 16 "gt-mr-2"}}{{.ShortName}}
49+
<a class="ui labelled basic tiny button" href="{{$.RepoLink}}/src/commit/{{$commit.Rev|PathEscape}}">
50+
{{svg "octicon-cross-reference"}} {{.ShortName}}
5151
</a>
5252
{{else if eq $refGroup "heads"}}
53-
<a class="ui labelled icon button basic tiny gt-mr-2" href="{{$.RepoLink}}/src/branch/{{.ShortName|PathEscape}}">
54-
{{svg "octicon-git-branch" 16 "gt-mr-2"}}{{.ShortName}}
53+
<a class="ui labelled basic tiny button" href="{{$.RepoLink}}/src/branch/{{.ShortName|PathEscape}}">
54+
{{svg "octicon-git-branch"}} {{.ShortName}}
5555
</a>
5656
{{else}}
5757
<!-- Unknown ref type .Name -->

web_src/css/features/gitgraph.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,13 @@
109109
background-color: var(--color-secondary-alpha-30);
110110
}
111111

112-
#git-graph-container #rev-list .tags a.button {
112+
#git-graph-container #rev-list .commit-refs .button {
113113
padding: 2px 4px;
114+
margin-right: 0.25em;
115+
display: inline-block;
116+
max-width: 200px;
117+
overflow: hidden;
118+
text-overflow: ellipsis;
114119
}
115120

116121
#git-graph-container #rev-list .sha.label {

0 commit comments

Comments
 (0)