diff --git a/templates/repo/graph/commits.tmpl b/templates/repo/graph/commits.tmpl
index 9f7a6c1c6..8cd6adb04 100644
--- a/templates/repo/graph/commits.tmpl
+++ b/templates/repo/graph/commits.tmpl
@@ -1,9 +1,9 @@
{{ range $commitI, $commit := .Graph.Commits }}
- -
+
-
{{ if $commit.OnlyRelation }}
-
+
{{ else }}
{{$class := "ui sha label"}}
diff --git a/web_src/less/features/gitgraph.less b/web_src/less/features/gitgraph.less
index fa37eba02..dd01ae4bc 100644
--- a/web_src/less/features/gitgraph.less
+++ b/web_src/less/features/gitgraph.less
@@ -1,6 +1,4 @@
#git-graph-container {
- float: left;
- display: block;
overflow-x: scroll;
width: 100%;
min-height: 350px;