Browse Source

Fix graph pagination (#15225) (#15249)

* Fixed invalid HTML tag.

* Fixed pagination.

* Update templates/repo/graph/commits.tmpl

Co-authored-by: zeripath <art27@cantab.net>
mj-v1.14.3
KN4CK3R 1 year ago
committed by GitHub
parent
commit
8ec7beb9f4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      templates/repo/graph/commits.tmpl
  2. 2
      web_src/less/features/gitgraph.less

4
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"}}

2
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;

Loading…
Cancel
Save