mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 21:14:41 +01:00
Make organization dropdown scrollable when using mouse wheel (#5988)
* Fix #5580
This commit is contained in:
parent
f066bd2b3f
commit
4512634604
3 changed files with 8 additions and 29 deletions
File diff suppressed because one or more lines are too long
|
@ -396,33 +396,12 @@ pre, code {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.overflow.menu {
|
.ui.floating.dropdown {
|
||||||
.items {
|
.overflow.menu {
|
||||||
max-height: 300px;
|
.scrolling.menu.items {
|
||||||
overflow-y: auto;
|
border-radius: 0px !important;
|
||||||
.item {
|
box-shadow: none !important;
|
||||||
position: relative;
|
border-bottom: 1px solid rgba(34, 36, 38, 0.15);
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<div class="ui header">
|
<div class="ui header">
|
||||||
{{.i18n.Tr "home.switch_dashboard_context"}}
|
{{.i18n.Tr "home.switch_dashboard_context"}}
|
||||||
</div>
|
</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}}">
|
<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}}">
|
<img class="ui avatar image" src="{{.SignedUser.RelAvatarLink}}">
|
||||||
{{.SignedUser.Name}}
|
{{.SignedUser.Name}}
|
||||||
|
|
Loading…
Reference in a new issue