diff options
author | Percy Ma <kecrily@gmail.com> | 2022-11-25 14:37:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-25 14:37:02 +0800 |
commit | b91167b77230b891a38e21f83926341b641ca525 (patch) | |
tree | bde419f131851b0df719e371a6b7628d1bc64137 /templates | |
parent | a1ae83f36ece5e37c738bd796227cf5990ccc030 (diff) | |
download | gitea-b91167b77230b891a38e21f83926341b641ca525.tar.gz gitea-b91167b77230b891a38e21f83926341b641ca525.zip |
fix(web): keep the pages of the navigation in the center (#21867)
Keep the pages of the navigation in the center
<table>
<tr>
<th>Before</th>
<th>After</th>
</tr>
<tr>
<td>
<img width="200" alt="image"
src="https://user-images.githubusercontent.com/45708948/202838756-d6d57b3f-8144-4a43-a33b-ea7c8ab3a495.png">
</td>
<td>
<img width="192" alt="image"
src="https://user-images.githubusercontent.com/45708948/202838740-bbae1e86-b14c-421d-92d4-d0e53d5952a2.png">
</td>
</tr>
</table>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base/paginate.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base/paginate.tmpl b/templates/base/paginate.tmpl index ebca1b2be4..1ed6970983 100644 --- a/templates/base/paginate.tmpl +++ b/templates/base/paginate.tmpl @@ -15,7 +15,7 @@ {{if eq .Num -1}} <a class="disabled item">...</a> {{else}} - <a class="{{if .IsCurrent}}active{{end}} item" {{if not .IsCurrent}}href="{{$.Link}}?page={{.Num}}{{if $paginationLink}}&{{$paginationLink}}{{end}}"{{end}}>{{.Num}}</a> + <a class="{{if .IsCurrent}}active{{end}} item content-center" {{if not .IsCurrent}}href="{{$.Link}}?page={{.Num}}{{if $paginationLink}}&{{$paginationLink}}{{end}}"{{end}}>{{.Num}}</a> {{end}} {{end}} <a class="{{if not .HasNext}}disabled{{end}} item navigation" {{if .HasNext}}href="{{$.Link}}?page={{.Next}}{{if $paginationLink}}&{{$paginationLink}}{{end}}"{{end}}> |