Skip to content

Commit bc1f211

Browse files
KN4CK3Rzeripathtechknowlogick6543lunny
authored
Fix graph pagination (#15225)
* Fixed invalid HTML tag. * Fixed pagination. * Update templates/repo/graph/commits.tmpl Co-authored-by: zeripath <[email protected]> Co-authored-by: zeripath <[email protected]> Co-authored-by: techknowlogick <[email protected]> Co-authored-by: 6543 <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
1 parent a351b22 commit bc1f211

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

templates/repo/graph/commits.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<div id="rev-container">
22
<ul id="rev-list">
33
{{ range $commitI, $commit := .Graph.Commits }}
4-
<li id="commit-{{$commit.Rev}}" data-flow="{{$commit.Flow}}">
4+
<li {{if $commit.Rev}}id="commit-{{$commit.Rev}}"{{end}} data-flow="{{$commit.Flow}}">
55
{{ if $commit.OnlyRelation }}
6-
<span />
6+
<span></span>
77
{{ else }}
88
<span class="sha" id="{{$commit.ShortRev}}">
99
{{$class := "ui sha label"}}

web_src/less/features/gitgraph.less

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#git-graph-container {
2-
float: left;
3-
display: block;
42
overflow-x: scroll;
53
width: 100%;
64
min-height: 350px;

0 commit comments

Comments
 (0)