summaryrefslogtreecommitdiffstats
path: root/templates/user/dashboard
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-26 12:39:32 +0800
committerUnknwon <u@gogs.io>2015-08-26 12:39:32 +0800
commit2f2bf20aaef444d0167a659c346fb545efbd7921 (patch)
tree261366a88f32f6101a529df7f99f9c083e5c229f /templates/user/dashboard
parentb3a45693c37c94850c0a615b69d19a7e88352348 (diff)
downloadgitea-2f2bf20aaef444d0167a659c346fb545efbd7921.tar.gz
gitea-2f2bf20aaef444d0167a659c346fb545efbd7921.zip
fix menu overflow
Diffstat (limited to 'templates/user/dashboard')
-rw-r--r--templates/user/dashboard/navbar.tmpl24
1 files changed, 13 insertions, 11 deletions
diff --git a/templates/user/dashboard/navbar.tmpl b/templates/user/dashboard/navbar.tmpl
index ad1991d786..7bca9c8107 100644
--- a/templates/user/dashboard/navbar.tmpl
+++ b/templates/user/dashboard/navbar.tmpl
@@ -5,20 +5,22 @@
{{.ContextUser.Name}}
<i class="dropdown icon"></i>
</span>
- <div class="context user menu" tabindex="-1">
+ <div class="context user overflow menu" tabindex="-1">
<div class="ui header">
{{.i18n.Tr "home.switch_dashboard_context"}}
</div>
- <a class="{{if eq .ContextUser.Id .SignedUser.Id}}active selected{{end}} item" href="{{AppSubUrl}}/issues">
- <img class="ui image" src="{{.SignedUser.AvatarLink}}">
- {{.SignedUser.Name}}
- </a>
- {{range .Orgs}}
- <a class="{{if eq $.ContextUser.Id .Id}}active selected{{end}} item" href="{{AppSubUrl}}/org/{{.Name}}/issues">
- <img class="ui image" src="{{.AvatarLink}}">
- {{.Name}}
- </a>
- {{end}}
+ <div class="items">
+ <a class="{{if eq .ContextUser.Id .SignedUser.Id}}active selected{{end}} item" href="{{AppSubUrl}}/issues">
+ <img class="ui avatar image" src="{{.SignedUser.AvatarLink}}">
+ {{.SignedUser.Name}}
+ </a>
+ {{range .Orgs}}
+ <a class="{{if eq $.ContextUser.Id .Id}}active selected{{end}} item" href="{{AppSubUrl}}/org/{{.Name}}/issues">
+ <img class="ui avatar image" src="{{.AvatarLink}}">
+ {{.Name}}
+ </a>
+ {{end}}
+ </div>
<a class="item" href="{{AppSubUrl}}/org/create">
<i class="octicon octicon-repo-create"></i>&nbsp;&nbsp;&nbsp;{{.i18n.Tr "new_org"}}
</a>