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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
90cd66a5
Commit
90cd66a5
authored
Feb 20, 2017
by
Pratik Borsadiya
Committed by
Pratik Borsadiya
Feb 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #27840 - Improve the search bar experience on mobile
parent
c5b29ed6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
3 deletions
+55
-3
app/assets/javascripts/filtered_search/filtered_search_dropdown.js.es6
...vascripts/filtered_search/filtered_search_dropdown.js.es6
+5
-1
app/assets/stylesheets/framework/filters.scss
app/assets/stylesheets/framework/filters.scss
+45
-1
app/views/shared/issuable/_search_bar.html.haml
app/views/shared/issuable/_search_bar.html.haml
+1
-1
changelogs/unreleased/27840-improve-search-bar-experience.yml
...gelogs/unreleased/27840-improve-search-bar-experience.yml
+4
-0
No files found.
app/assets/javascripts/filtered_search/filtered_search_dropdown.js.es6
View file @
90cd66a5
...
...
@@ -48,7 +48,11 @@
}
setOffset(offset = 0) {
if (window.innerWidth > 480) {
this.dropdown.style.left = `${offset}px`;
} else {
this.dropdown.style.left = '0px';
}
}
renderContent(forceShowList = false) {
...
...
app/assets/stylesheets/framework/filters.scss
View file @
90cd66a5
...
...
@@ -26,6 +26,11 @@
.filtered-search-container
{
display
:
-
webkit-flex
;
display
:
flex
;
@media
(
max-width
:
$screen-xs-min
)
{
-webkit-flex-direction
:
column
;
flex-direction
:
column
;
}
}
.filtered-search-input-container
{
...
...
@@ -34,6 +39,20 @@
position
:
relative
;
width
:
100%
;
@media
(
max-width
:
$screen-xs-min
)
{
-webkit-flex
:
1
1
100%
;
flex
:
1
1
100%
;
margin-bottom
:
10px
;
.dropdown-menu
{
width
:
auto
;
left
:
0
;
right
:
0
;
max-width
:
none
;
min-width
:
100%
;
}
}
.form-control
{
padding-left
:
25px
;
padding-right
:
25px
;
...
...
@@ -79,6 +98,31 @@
overflow
:
auto
;
}
@media
(
max-width
:
$screen-xs-min
)
{
.issues-details-filters
{
padding
:
0
0
10px
;
background-color
:
$white-light
;
border-top
:
0
;
}
.filter-dropdown-container
{
.dropdown-toggle
,
.dropdown
{
width
:
100%
;
}
.dropdown
{
margin-left
:
0
;
}
.fa-chevron-down
{
position
:
absolute
;
right
:
10px
;
top
:
10px
;
}
}
}
%filter-dropdown-item-btn-hover
{
background-color
:
$dropdown-hover-color
;
color
:
$white-light
;
...
...
app/views/shared/issuable/_search_bar.html.haml
View file @
90cd66a5
...
...
@@ -82,7 +82,7 @@
%span
.dropdown-label-box
{
style:
'
background:
{{
color
}}
'
}
%span
.label-title.js-data-value
{{title}}
.pull-right
.pull-right
.filter-dropdown-container
=
render
'shared/sort_dropdown'
-
if
@bulk_edit
...
...
changelogs/unreleased/27840-improve-search-bar-experience.yml
0 → 100644
View file @
90cd66a5
---
title
:
Enhanced filter issues layout for better mobile experiance
merge_request
:
9280
author
:
Pratik Borsadiya
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