diff --git a/templates/repo/graph/commits.tmpl b/templates/repo/graph/commits.tmpl
index d054462ebcedd..d213c53e96336 100644
--- a/templates/repo/graph/commits.tmpl
+++ b/templates/repo/graph/commits.tmpl
@@ -28,27 +28,29 @@
{{- end -}}
- {{RenderCommitMessage $commit.Subject $.RepoLink $.Repository.ComposeMetas}}
+
+ {{RenderCommitMessage $commit.Subject $.RepoLink $.Repository.ComposeMetas}}
+
{{range $commit.Refs}}
{{$refGroup := .RefGroup}}
{{if eq $refGroup "pull"}}
{{if or (not $.HidePRRefs) (containGeneric $.SelectedBranches .Name)}}
-
+
{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
{{end}}
{{else if eq $refGroup "tags"}}
-
+
{{svg "octicon-tag" 16 "mr-2"}}{{.ShortName}}
{{else if eq $refGroup "remotes"}}
-
+
{{svg "octicon-cross-reference" 16 "mr-2"}}{{.ShortName}}
{{else if eq $refGroup "heads"}}
-
+
{{svg "octicon-git-branch" 16 "mr-2"}}{{.ShortName}}
{{else}}
diff --git a/web_src/less/features/gitgraph.less b/web_src/less/features/gitgraph.less
index f664a31d570f4..25dcc02159d71 100644
--- a/web_src/less/features/gitgraph.less
+++ b/web_src/less/features/gitgraph.less
@@ -137,6 +137,7 @@
.author .ui.avatar.image {
width: auto;
height: 18px;
+ max-width: none;
}
}
diff --git a/web_src/less/helpers.less b/web_src/less/helpers.less
index a4e8243cc7808..f35412fd0e220 100644
--- a/web_src/less/helpers.less
+++ b/web_src/less/helpers.less
@@ -28,6 +28,12 @@
word-wrap: break-word !important;
}
+.ellipsis {
+ overflow: hidden !important;
+ white-space: nowrap !important;
+ text-overflow: ellipsis !important;
+}
+
.full-screen-width { width: 100vw !important; }
.full-screen-height { height: 100vh !important; }