Commit 4434f93a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Select2 dropdown autoWidth

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 8a179611
......@@ -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()
......
......@@ -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;
}
......@@ -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;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment