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>
This commit is contained in:
KN4CK3R 2021-04-01 22:01:23 +02:00 committed by GitHub
parent a351b22dc0
commit bc1f2117f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -1,9 +1,9 @@
<div id="rev-container"> <div id="rev-container">
<ul id="rev-list"> <ul id="rev-list">
{{ range $commitI, $commit := .Graph.Commits }} {{ 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 }} {{ if $commit.OnlyRelation }}
<span /> <span></span>
{{ else }} {{ else }}
<span class="sha" id="{{$commit.ShortRev}}"> <span class="sha" id="{{$commit.ShortRev}}">
{{$class := "ui sha label"}} {{$class := "ui sha label"}}

View file

@ -1,6 +1,4 @@
#git-graph-container { #git-graph-container {
float: left;
display: block;
overflow-x: scroll; overflow-x: scroll;
width: 100%; width: 100%;
min-height: 350px; min-height: 350px;