Skip to content

Commit

Permalink
Merge remote-tracking branch 'giteaoffical/main'
Browse files Browse the repository at this point in the history
* giteaoffical/main:
  Fix typo in sidebar (go-gitea#21934)
  fix(web): keep the pages of the navigation in the center (go-gitea#21867)
  • Loading branch information
zjjhot committed Nov 25, 2022
2 parents 1a3fa0d + 7a4f7b3 commit c7939bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/content/doc/packages/storage.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toc: false
menu:
sidebar:
parent: "packages"
name: "storage"
name: "Storage"
weight: 5
identifier: "storage"
---
Expand Down
2 changes: 1 addition & 1 deletion templates/base/paginate.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}>
Expand Down
2 changes: 2 additions & 0 deletions web_src/less/helpers.less
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

.content-center { align-content: center !important; }

@media @mediaSm {
.db-small { display: block !important; }
.w-100-small { width: 100% !important; }
Expand Down

0 comments on commit c7939bb

Please sign in to comment.