|
2 | 2 | <div class="ui secondary stackable menu"> |
3 | 3 | <div class="item"> |
4 | 4 | <div class="ui floating dropdown jump"> |
5 | | - <span class="text truncated-item-container"> |
| 5 | + <span class="text"> |
6 | 6 | {{ctx.AvatarUtils.Avatar .ContextUser 24 "tw-mr-1"}} |
7 | | - <span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span> |
| 7 | + <span class="gt-ellipsis">{{.ContextUser.ShortName 40}}</span> |
8 | 8 | <span class="org-visibility"> |
9 | 9 | {{if .ContextUser.Visibility.IsLimited}}<div class="ui basic tiny horizontal label">{{ctx.Locale.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}} |
10 | 10 | {{if .ContextUser.Visibility.IsPrivate}}<div class="ui basic tiny horizontal label">{{ctx.Locale.Tr "org.settings.visibility.private_shortname"}}</div>{{end}} |
11 | 11 | </span> |
12 | 12 | {{svg "octicon-triangle-down" 14 "dropdown icon tw-ml-1"}} |
13 | 13 | </span> |
14 | | - <div class="context user overflow menu"> |
| 14 | + <div class="menu context-user-switch"> |
15 | 15 | <div class="header"> |
16 | 16 | {{ctx.Locale.Tr "home.switch_dashboard_context"}} |
17 | 17 | </div> |
18 | | - <div class="scrolling menu items"> |
19 | | - <a class="{{if eq .ContextUser.ID .SignedUser.ID}}active selected{{end}} item truncated-item-container" href="{{AppSubUrl}}/{{if .PageIsIssues}}issues{{else if .PageIsPulls}}pulls{{else if .PageIsMilestonesDashboard}}milestones{{end}}"> |
| 18 | + <div class="scrolling menu"> |
| 19 | + <a class="{{if eq .ContextUser.ID .SignedUser.ID}}active selected{{end}} item" href="{{AppSubUrl}}/{{if .PageIsIssues}}issues{{else if .PageIsPulls}}pulls{{else if .PageIsMilestonesDashboard}}milestones{{end}}"> |
20 | 20 | {{ctx.AvatarUtils.Avatar .SignedUser}} |
21 | | - <span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span> |
| 21 | + <span class="gt-ellipsis">{{.SignedUser.ShortName 40}}</span> |
22 | 22 | <span class="org-visibility"> |
23 | 23 | {{if .SignedUser.Visibility.IsLimited}}<div class="ui basic tiny horizontal label">{{ctx.Locale.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}} |
24 | 24 | {{if .SignedUser.Visibility.IsPrivate}}<div class="ui basic tiny horizontal label">{{ctx.Locale.Tr "org.settings.visibility.private_shortname"}}</div>{{end}} |
25 | 25 | </span> |
26 | 26 | </a> |
27 | 27 | {{range .Orgs}} |
28 | | - <a class="{{if eq $.ContextUser.ID .ID}}active selected{{end}} item truncated-item-container" title="{{.Name}}" href="{{.OrganisationLink}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else if $.PageIsMilestonesDashboard}}milestones{{else}}dashboard{{end}}"> |
| 28 | + <a class="{{if eq $.ContextUser.ID .ID}}active selected{{end}} item" title="{{.Name}}" href="{{.OrganisationLink}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else if $.PageIsMilestonesDashboard}}milestones{{else}}dashboard{{end}}"> |
29 | 29 | {{ctx.AvatarUtils.Avatar .}} |
30 | | - <span class="truncated-item-name">{{.ShortName 40}}</span> |
| 30 | + <span class="gt-ellipsis">{{.ShortName 40}}</span> |
31 | 31 | <span class="org-visibility"> |
32 | 32 | {{if .Visibility.IsLimited}}<div class="ui basic tiny horizontal label">{{ctx.Locale.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}} |
33 | 33 | {{if .Visibility.IsPrivate}}<div class="ui basic tiny horizontal label">{{ctx.Locale.Tr "org.settings.visibility.private_shortname"}}</div>{{end}} |
|
0 commit comments