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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
4434f93a
Commit
4434f93a
authored
Jan 11, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Select2 dropdown autoWidth
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
8a179611
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
36 deletions
+18
-36
app/assets/javascripts/main.js.coffee
app/assets/javascripts/main.js.coffee
+1
-1
app/assets/stylesheets/generic/selects.scss
app/assets/stylesheets/generic/selects.scss
+16
-1
app/assets/stylesheets/sections/projects.scss
app/assets/stylesheets/sections/projects.scss
+1
-34
No files found.
app/assets/javascripts/main.js.coffee
View file @
4434f93a
...
...
@@ -68,7 +68,7 @@ $ ->
e
.
preventDefault
()
# Initialize select2 selects
$
(
'select.select2'
).
select2
(
width
:
'resolve'
)
$
(
'select.select2'
).
select2
(
width
:
'resolve'
,
dropdownAutoWidth
:
true
)
# Initialize tooltips
$
(
'.has_tooltip'
).
tooltip
()
...
...
app/assets/stylesheets/generic/selects.scss
View file @
4434f93a
...
...
@@ -2,11 +2,20 @@
.select2-container
{
.select2-choice
{
background
:
#
EEE
;
background
:
#
FFF
;
border-color
:
#BBB
;
.select2-arrow
{
background
:
#FFF
;
}
}
}
.select2-drop-active
{
border
:
1px
solid
#BBB
;
margin-top
:
4px
;
}
select
{
&
.select2
{
width
:
100px
;
...
...
@@ -51,3 +60,9 @@ select {
}
}
}
/** Branch/tag selector **/
.project-refs-form
.select2-container
{
margin-right
:
10px
;
}
app/assets/stylesheets/sections/projects.scss
View file @
4434f93a
...
...
@@ -75,7 +75,7 @@
.project-home-dropdown
+
&
{
margin-right
:
45px
;
}
.btn
,
.form-control
{
border
:
1px
solid
#E1E1E1
;
...
...
@@ -234,39 +234,6 @@ ul.nav.nav-projects-tabs {
min-width
:
200px
;
}
/** Branch/tag selector **/
.project-refs-form
{
margin
:
0
;
span
{
background
:none
!
important
;
position
:static
!
important
;
width
:auto
!
important
;
height
:auto
!
important
;
}
}
.project-refs-form
.select2-container
{
position
:
relative
;
top
:
0
;
left
:
0
;
margin-right
:
10px
;
.select2-single
span
{
font-weight
:
bold
;
color
:
#555
;
}
&
.select2-container-active
{
.select2-drop
{
min-width
:
400px
;
}
.select2-results
{
max-height
:
400px
;
}
}
}
.deploy-project-label
{
margin
:
1px
;
}
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