diff options
author | Unknwon <u@gogs.io> | 2015-08-26 12:39:32 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-26 12:39:32 +0800 |
commit | 2f2bf20aaef444d0167a659c346fb545efbd7921 (patch) | |
tree | 261366a88f32f6101a529df7f99f9c083e5c229f /templates | |
parent | b3a45693c37c94850c0a615b69d19a7e88352348 (diff) | |
download | gitea-2f2bf20aaef444d0167a659c346fb545efbd7921.tar.gz gitea-2f2bf20aaef444d0167a659c346fb545efbd7921.zip |
fix menu overflow
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/pulls/compare.tmpl | 5 | ||||
-rw-r--r-- | templates/user/dashboard/navbar.tmpl | 24 |
2 files changed, 16 insertions, 13 deletions
diff --git a/templates/repo/pulls/compare.tmpl b/templates/repo/pulls/compare.tmpl index 798210dbff..b8b490de32 100644 --- a/templates/repo/pulls/compare.tmpl +++ b/templates/repo/pulls/compare.tmpl @@ -14,7 +14,7 @@ <span class="text">base: {{$.BaseBranch}}</span> <i class="dropdown icon"></i> </div> - <div class="menu"> + <div class="overflow menu"> <div class="ui icon search input"> <i class="filter icon"></i> <input name="search" placeholder="Filter branch..."> @@ -32,7 +32,7 @@ <span class="text">compare: {{$.HeadBranch}}</span> <i class="dropdown icon"></i> </div> - <div class="menu"> + <div class="overflow menu"> <div class="ui icon search input"> <i class="filter icon"></i> <input name="search" placeholder="Filter branch..."> @@ -47,6 +47,7 @@ </div> {{template "repo/issue/new_form" .}} </div> + </div> </div> {{template "base/footer" .}}
\ No newline at end of file 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> {{.i18n.Tr "new_org"}} </a> |