BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
450d0598
Commit
450d0598
authored
Mar 06, 2017
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'cowbellerina-22562-todos-filters' into 'master'
Fix Sort dropdown reflow issue Closes #22562 See merge request !9728
parents
528f3ca2
01fae383
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
11 deletions
+28
-11
dropdowns.scss
app/assets/stylesheets/framework/dropdowns.scss
+1
-1
filters.scss
app/assets/stylesheets/framework/filters.scss
+14
-1
todos.scss
app/assets/stylesheets/pages/todos.scss
+5
-5
index.html.haml
app/views/dashboard/todos/index.html.haml
+4
-4
22562-todos-filters.yml
changelogs/unreleased/22562-todos-filters.yml
+4
-0
No files found.
app/assets/stylesheets/framework/dropdowns.scss
View file @
450d0598
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
.dropdown-menu-toggle
{
.dropdown-menu-toggle
{
@extend
.dropdown-toggle
;
@extend
.dropdown-toggle
;
padding-right
:
2
0
px
;
padding-right
:
2
5
px
;
position
:
relative
;
position
:
relative
;
width
:
163px
;
width
:
163px
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
...
...
app/assets/stylesheets/framework/filters.scss
View file @
450d0598
.filter-item
{
.filter-item
{
margin-right
:
6px
;
vertical-align
:
top
;
vertical-align
:
top
;
&
.reset-filters
{
&
.reset-filters
{
...
@@ -14,6 +13,20 @@
...
@@ -14,6 +13,20 @@
width
:
132px
;
width
:
132px
;
}
}
}
}
.filter-item
:not
(
:last-child
)
{
margin-right
:
6px
;
}
.sort-filter
{
display
:
inline-block
;
float
:
right
;
}
.dropdown-menu-sort
{
left
:
auto
;
right
:
0
;
}
}
}
@media
(
max-width
:
$screen-xs-max
)
{
@media
(
max-width
:
$screen-xs-max
)
{
...
...
app/assets/stylesheets/pages/todos.scss
View file @
450d0598
...
@@ -170,7 +170,11 @@
...
@@ -170,7 +170,11 @@
@media
(
max-width
:
$screen-sm-max
)
{
@media
(
max-width
:
$screen-sm-max
)
{
.todos-filters
{
.todos-filters
{
.dropdown-menu-toggle
{
.dropdown-menu-toggle
{
width
:
135px
;
width
:
130px
;
}
.dropdown-menu-toggle-sort
{
width
:
auto
;
}
}
}
}
}
}
...
@@ -200,10 +204,6 @@
...
@@ -200,10 +204,6 @@
}
}
.todos-filters
{
.todos-filters
{
.row-content-block
{
padding-bottom
:
50px
;
}
.dropdown-menu-toggle
{
.dropdown-menu-toggle
{
width
:
100%
;
width
:
100%
;
}
}
...
...
app/views/dashboard/todos/index.html.haml
View file @
450d0598
...
@@ -46,16 +46,16 @@
...
@@ -46,16 +46,16 @@
=
hidden_field_tag
(
:action_id
,
params
[
:action_id
])
=
hidden_field_tag
(
:action_id
,
params
[
:action_id
])
=
dropdown_tag
(
todo_actions_dropdown_label
(
params
[
:action_id
],
'Action'
),
options:
{
toggle_class:
'js-action-search js-filter-submit'
,
dropdown_class:
'dropdown-menu-selectable dropdown-menu-action js-filter-submit'
,
=
dropdown_tag
(
todo_actions_dropdown_label
(
params
[
:action_id
],
'Action'
),
options:
{
toggle_class:
'js-action-search js-filter-submit'
,
dropdown_class:
'dropdown-menu-selectable dropdown-menu-action js-filter-submit'
,
data:
{
data:
todo_actions_options
,
default_label:
'Action'
}
})
data:
{
data:
todo_actions_options
,
default_label:
'Action'
}
})
.
pull-right
.
filter-item.sort-filter
.dropdown
.inline.prepend-left-10
.dropdown
%button
.dropdown-
toggle
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%button
.dropdown-
menu-toggle.dropdown-menu-toggle-sort
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%span
.light
%span
.light
-
if
@sort
.
present?
-
if
@sort
.
present?
=
sort_options_hash
[
@sort
]
=
sort_options_hash
[
@sort
]
-
else
-
else
=
sort_title_recently_created
=
sort_title_recently_created
=
icon
(
'chevron-down'
)
=
icon
(
'chevron-down'
)
%ul
.dropdown-menu.dropdown-menu-
align-right.dropdown-menu-
sort
%ul
.dropdown-menu.dropdown-menu-sort
%li
%li
=
link_to
todos_filter_path
(
sort:
sort_value_priority
)
do
=
link_to
todos_filter_path
(
sort:
sort_value_priority
)
do
=
sort_title_priority
=
sort_title_priority
...
...
changelogs/unreleased/22562-todos-filters.yml
0 → 100644
View file @
450d0598
---
title
:
Fix Sort dropdown reflow issue
merge_request
:
9533
author
:
Jarkko Tuunanen
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