diff options
author | KN4CK3R <KN4CK3R@users.noreply.github.com> | 2021-04-01 22:01:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 16:01:23 -0400 |
commit | bc1f2117f1be539e971c90877658a8e456ce9e25 (patch) | |
tree | 6298449d58052b3d2b95694d02a0a14971c1b389 | |
parent | a351b22dc0319a99ef68048529e533c7e91a9c8c (diff) | |
download | gitea-bc1f2117f1be539e971c90877658a8e456ce9e25.tar.gz gitea-bc1f2117f1be539e971c90877658a8e456ce9e25.zip |
Fix graph pagination (#15225)
* Fixed invalid HTML tag.
* Fixed pagination.
* Update templates/repo/graph/commits.tmpl
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
-rw-r--r-- | templates/repo/graph/commits.tmpl | 4 | ||||
-rw-r--r-- | web_src/less/features/gitgraph.less | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/templates/repo/graph/commits.tmpl b/templates/repo/graph/commits.tmpl index 9f7a6c1c66..8cd6adb04d 100644 --- a/templates/repo/graph/commits.tmpl +++ b/templates/repo/graph/commits.tmpl @@ -1,9 +1,9 @@ <div id="rev-container"> <ul id="rev-list"> {{ range $commitI, $commit := .Graph.Commits }} - <li id="commit-{{$commit.Rev}}" data-flow="{{$commit.Flow}}"> + <li {{if $commit.Rev}}id="commit-{{$commit.Rev}}"{{end}} data-flow="{{$commit.Flow}}"> {{ if $commit.OnlyRelation }} - <span /> + <span></span> {{ else }} <span class="sha" id="{{$commit.ShortRev}}"> {{$class := "ui sha label"}} diff --git a/web_src/less/features/gitgraph.less b/web_src/less/features/gitgraph.less index fa37eba02c..dd01ae4bc5 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; |