Skip to content

Commit c7939bb

Browse files
committed
Merge remote-tracking branch 'giteaoffical/main'
* giteaoffical/main: Fix typo in sidebar (go-gitea#21934) fix(web): keep the pages of the navigation in the center (go-gitea#21867)
2 parents 1a3fa0d + 7a4f7b3 commit c7939bb

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

docs/content/doc/packages/storage.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ toc: false
77
menu:
88
sidebar:
99
parent: "packages"
10-
name: "storage"
10+
name: "Storage"
1111
weight: 5
1212
identifier: "storage"
1313
---

templates/base/paginate.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{{if eq .Num -1}}
1616
<a class="disabled item">...</a>
1717
{{else}}
18-
<a class="{{if .IsCurrent}}active{{end}} item" {{if not .IsCurrent}}href="{{$.Link}}?page={{.Num}}{{if $paginationLink}}&{{$paginationLink}}{{end}}"{{end}}>{{.Num}}</a>
18+
<a class="{{if .IsCurrent}}active{{end}} item content-center" {{if not .IsCurrent}}href="{{$.Link}}?page={{.Num}}{{if $paginationLink}}&{{$paginationLink}}{{end}}"{{end}}>{{.Num}}</a>
1919
{{end}}
2020
{{end}}
2121
<a class="{{if not .HasNext}}disabled{{end}} item navigation" {{if .HasNext}}href="{{$.Link}}?page={{.Next}}{{if $paginationLink}}&{{$paginationLink}}{{end}}"{{end}}>

web_src/less/helpers.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@
172172
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
173173
.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
174174

175+
.content-center { align-content: center !important; }
176+
175177
@media @mediaSm {
176178
.db-small { display: block !important; }
177179
.w-100-small { width: 100% !important; }

0 commit comments

Comments
 (0)