Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
52fd1b08
Commit
52fd1b08
authored
Dec 05, 2016
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add vertical scrolling for dropdowns
parent
9f1c19ce
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
13 deletions
+22
-13
app/assets/stylesheets/framework/filters.scss
app/assets/stylesheets/framework/filters.scss
+9
-0
app/views/shared/issuable/_search_bar.html.haml
app/views/shared/issuable/_search_bar.html.haml
+13
-13
No files found.
app/assets/stylesheets/framework/filters.scss
View file @
52fd1b08
...
...
@@ -74,6 +74,11 @@
}
.filter-dropdown
{
max-height
:
215px
;
overflow-x
:
scroll
;
}
.filter-dropdown-item
{
.btn
{
border
:
none
;
width
:
100%
;
...
...
@@ -103,3 +108,7 @@
flex-direction
:
column
;
}
}
.hint-dropdown
{
width
:
250px
;
}
app/views/shared/issuable/_search_bar.html.haml
View file @
52fd1b08
...
...
@@ -16,8 +16,8 @@
=
icon
(
'filter'
)
%button
.clear-search.hidden
{
type:
'button'
}
=
icon
(
'times'
)
%ul
#js-dropdown-hint
.dropdown-menu
{
'data-dynamic'
=>
true
}
%li
.filter-dropdown
%ul
#js-dropdown-hint
.dropdown-menu
.hint-dropdown
{
'data-dynamic'
=>
true
}
%li
.filter-dropdown
-item
%button
.btn.btn-link
%i
.fa
{
'class'
:
'
{{
icon
}}
'
}
%span
.js-filter-hint
...
...
@@ -25,8 +25,8 @@
%span
.js-filter-tag.dropdown-light-content
{{tag}}
#js-dropdown-author
.dropdown-menu
{
'data-dropdown'
=>
true
}
%ul
{
'data-dynamic'
=>
true
}
%li
.filter-dropdown
%ul
.filter-dropdown
{
'data-dynamic'
=>
true
}
%li
.filter-dropdown
-item
%button
.btn.btn-link.dropdown-user
%img
.avatar.avatar-inline
{
'data-src'
:
'
{{
avatar_url
}}
', width: '
30
'
}
.dropdown-user-details
...
...
@@ -36,12 +36,12 @@
@{{username}}
#js-dropdown-assignee
.dropdown-menu
{
'data-dropdown'
=>
true
}
%ul
%li
.filter-dropdown
%li
.filter-dropdown
-item
%button
.btn.btn-link
No assignee
%li
.divider
%ul
{
'data-dynamic'
=>
true
}
%li
.filter-dropdown
%ul
.filter-dropdown
{
'data-dynamic'
=>
true
}
%li
.filter-dropdown
-item
%button
.btn.btn-link.dropdown-user
%img
.avatar.avatar-inline
{
'data-src'
:
'
{{
avatar_url
}}
', width: '
30
'
}
.dropdown-user-details
...
...
@@ -51,22 +51,22 @@
@{{username}}
#js-dropdown-milestone
.dropdown-menu
{
'data-dropdown'
=>
true
}
%ul
%li
.filter-dropdown
%li
.filter-dropdown
-item
%button
.btn.btn-link
No milestone
%li
.divider
%ul
{
'data-dynamic'
=>
true
}
%li
.filter-dropdown
%ul
.filter-dropdown
{
'data-dynamic'
=>
true
}
%li
.filter-dropdown
-item
%button
.btn.btn-link
{{title}}
#js-dropdown-label
.dropdown-menu
{
'data-dropdown'
=>
true
}
%ul
%li
.filter-dropdown
%li
.filter-dropdown
-item
%button
.btn.btn-link
No label
%li
.divider
%ul
{
'data-dynamic'
=>
true
}
%li
.filter-dropdown
%ul
.filter-dropdown
{
'data-dynamic'
=>
true
}
%li
.filter-dropdown
-item
%button
.btn.btn-link
%span
.dropdown-label-box
{
'style'
:
'
background:
{{
color
}}
'
}
{{title}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment