]> source.dussan.org Git - gitea.git/commitdiff
Fix graph pagination (#15225)
authorKN4CK3R <KN4CK3R@users.noreply.github.com>
Thu, 1 Apr 2021 20:01:23 +0000 (22:01 +0200)
committerGitHub <noreply@github.com>
Thu, 1 Apr 2021 20:01:23 +0000 (16:01 -0400)
* 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>
templates/repo/graph/commits.tmpl
web_src/less/features/gitgraph.less

index 9f7a6c1c66978592990a58971553d6fcd358d025..8cd6adb04d8e2c778210c3799ccdb73496ad1693 100644 (file)
@@ -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"}}
index fa37eba02c9bdfd5835cba018b1dd2d2a593916b..dd01ae4bc568255d614d97c123b44f5b8ab7b2bf 100644 (file)
@@ -1,6 +1,4 @@
 #git-graph-container {
-  float: left;
-  display: block;
   overflow-x: scroll;
   width: 100%;
   min-height: 350px;