Skip to content

Commit 59a64c0

Browse files
Muhammed TİFTİKÇİtechknowlogick
Muhammed TİFTİKÇİ
authored andcommitted
Fix #5580 : Make organization dropdown scrollable when using mouse wh… (#6246)
* Fix #5580 : Make organization dropdown scrollable when using mouse wheel. * build less file with old makefile
1 parent 6a86a82 commit 59a64c0

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
@@ -384,33 +384,12 @@ pre, code {
384384

385385
}
386386

387-
.overflow.menu {
388-
.items {
389-
max-height: 300px;
390-
overflow-y: auto;
391-
.item {
392-
position: relative;
393-
cursor: pointer;
394-
display: block;
395-
border: none;
396-
height: auto;
397-
border-top: none;
398-
line-height: 1em;
399-
color: rgba(0,0,0,.8);
400-
padding: .71428571em 1.14285714em !important;
401-
font-size: 1rem;
402-
text-transform: none;
403-
font-weight: 400;
404-
box-shadow: none;
405-
-webkit-touch-callout: none;
406-
&.active {
407-
font-weight: 700;
408-
}
409-
&:hover {
410-
background: rgba(0,0,0,.05);
411-
color: rgba(0,0,0,.8);
412-
z-index: 13;
413-
}
387+
.ui.floating.dropdown {
388+
.overflow.menu {
389+
.scrolling.menu.items {
390+
border-radius: 0px !important;
391+
box-shadow: none !important;
392+
border-bottom: 1px solid rgba(34, 36, 38, 0.15);
414393
}
415394
}
416395
}

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)