diff options
author | Giteabot <teabot@gitea.io> | 2024-04-30 16:40:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 16:40:09 +0800 |
commit | 6ee3a8a039ed492d44e80b6f14f222a96763b196 (patch) | |
tree | 17fb6bb9f1ebdea303593c7877415193c018ae0d /templates | |
parent | 6edee2eca458c4d72d3e53218be1f7910f609237 (diff) | |
download | gitea-6ee3a8a039ed492d44e80b6f14f222a96763b196.tar.gz gitea-6ee3a8a039ed492d44e80b6f14f222a96763b196.zip |
Right align the "Settings" menu item in overflow-menu (#30764) (#30777)
Backport #30764 by wxiaoguang
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/org/menu.tmpl | 3 | ||||
-rw-r--r-- | templates/repo/header.tmpl | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/templates/org/menu.tmpl b/templates/org/menu.tmpl index c519606d1f..698a9559c5 100644 --- a/templates/org/menu.tmpl +++ b/templates/org/menu.tmpl @@ -40,8 +40,9 @@ </a> {{end}} {{if .IsOrganizationOwner}} + <span class="item-flex-space"></span> <a class="{{if .PageIsOrgSettings}}active {{end}}item" href="{{.OrgLink}}/settings"> - {{svg "octicon-tools"}} {{ctx.Locale.Tr "repo.settings"}} + {{svg "octicon-tools"}} {{ctx.Locale.Tr "repo.settings"}} </a> {{end}} </div> diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 775aa30063..c0d833a187 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -216,6 +216,7 @@ {{template "custom/extra_tabs" .}} {{if .Permission.IsAdmin}} + <span class="item-flex-space"></span> <a class="{{if .PageIsRepoSettings}}active {{end}} item" href="{{.RepoLink}}/settings"> {{svg "octicon-tools"}} {{ctx.Locale.Tr "repo.settings"}} </a> |