Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make organization dropdown scrollable when using mouse wheel #5988

Merged
merged 13 commits into from
Mar 5, 2019
2 changes: 1 addition & 1 deletion public/css/index.css

Large diffs are not rendered by default.

33 changes: 6 additions & 27 deletions public/less/_base.less
Original file line number Diff line number Diff line change
Expand Up @@ -386,33 +386,12 @@ pre > code {

}

.overflow.menu {
.items {
max-height: 300px;
overflow-y: auto;
.item {
position: relative;
cursor: pointer;
display: block;
border: none;
height: auto;
border-top: none;
line-height: 1em;
color: rgba(0,0,0,.8);
padding: .71428571em 1.14285714em !important;
font-size: 1rem;
text-transform: none;
font-weight: 400;
box-shadow: none;
-webkit-touch-callout: none;
&.active {
font-weight: 700;
}
&:hover {
background: rgba(0,0,0,.05);
color: rgba(0,0,0,.8);
z-index: 13;
}
.ui.floating.dropdown {
lafriks marked this conversation as resolved.
Show resolved Hide resolved
.overflow.menu {
.scrolling.menu.items {
border-radius: 0px !important;
box-shadow: none !important;
border-bottom: 1px solid rgba(34, 36, 38, 0.15);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion templates/user/dashboard/navbar.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="ui header">
{{.i18n.Tr "home.switch_dashboard_context"}}
</div>
<div class="items">
<div class="scrolling menu items">
<a class="{{if eq .ContextUser.ID .SignedUser.ID}}active selected{{end}} item" href="{{AppSubUrl}}/{{if .PageIsIssues}}issues{{else if .PageIsPulls}}pulls{{end}}">
<img class="ui avatar image" src="{{.SignedUser.RelAvatarLink}}">
{{.SignedUser.Name}}
Expand Down