style: use min-width to set a minimal width for select2 widgets (#14273)
This commit is contained in:
parent
944345385f
commit
55cfe218e2
|
@ -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"; },
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue