Skip to content

Commit

Permalink
Fix graph pagination (#15225)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
5 people authored Apr 1, 2021
1 parent a351b22 commit bc1f211
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions templates/repo/graph/commits.tmpl
Original file line number Diff line number Diff line change
@@ -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"}}
Expand Down
2 changes: 0 additions & 2 deletions web_src/less/features/gitgraph.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#git-graph-container {
float: left;
display: block;
overflow-x: scroll;
width: 100%;
min-height: 350px;
Expand Down

0 comments on commit bc1f211

Please sign in to comment.