Skip to content

Commit 4512634

Browse files
Muhammed TİFTİKÇİtechknowlogick
authored andcommitted
Make organization dropdown scrollable when using mouse wheel (#5988)
* Fix #5580
1 parent f066bd2 commit 4512634

File tree

3 files changed

+8
-29
lines changed

3 files changed

+8
-29
lines changed

public/css/index.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/less/_base.less

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -396,33 +396,12 @@ pre, code {
396396

397397
}
398398

399-
.overflow.menu {
400-
.items {
401-
max-height: 300px;
402-
overflow-y: auto;
403-
.item {
404-
position: relative;
405-
cursor: pointer;
406-
display: block;
407-
border: none;
408-
height: auto;
409-
border-top: none;
410-
line-height: 1em;
411-
color: rgba(0,0,0,.8);
412-
padding: .71428571em 1.14285714em !important;
413-
font-size: 1rem;
414-
text-transform: none;
415-
font-weight: 400;
416-
box-shadow: none;
417-
-webkit-touch-callout: none;
418-
&.active {
419-
font-weight: 700;
420-
}
421-
&:hover {
422-
background: rgba(0,0,0,.05);
423-
color: rgba(0,0,0,.8);
424-
z-index: 13;
425-
}
399+
.ui.floating.dropdown {
400+
.overflow.menu {
401+
.scrolling.menu.items {
402+
border-radius: 0px !important;
403+
box-shadow: none !important;
404+
border-bottom: 1px solid rgba(34, 36, 38, 0.15);
426405
}
427406
}
428407
}

templates/user/dashboard/navbar.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<div class="ui header">
1212
{{.i18n.Tr "home.switch_dashboard_context"}}
1313
</div>
14-
<div class="items">
14+
<div class="scrolling menu items">
1515
<a class="{{if eq .ContextUser.ID .SignedUser.ID}}active selected{{end}} item" href="{{AppSubUrl}}/{{if .PageIsIssues}}issues{{else if .PageIsPulls}}pulls{{end}}">
1616
<img class="ui avatar image" src="{{.SignedUser.RelAvatarLink}}">
1717
{{.SignedUser.Name}}

0 commit comments

Comments
 (0)