style: use min-width to set a minimal width for select2 widgets (#14273)

This commit is contained in:
Frédéric Péters 2016-12-12 17:19:26 +01:00
parent 944345385f
commit 55cfe218e2
2 changed files with 4 additions and 1 deletions

View File

@ -1871,7 +1871,6 @@ class JsonpSingleSelectWidget(Widget):
$(document).ready(function() {
$("#form_%(id)s").select2({
minimumInputLength: 1,
width: '20em',
%(allowclear)s
language: {
noResults: function () { return "%(nomatches)s"; },

View File

@ -364,6 +364,10 @@ div.block-edit-custom-text:hover a.edit-custom-text {
line-height: 20px;
}
span.select2-container {
min-width: 20em;
}
ul.select2-results {
text-align: left;
}