Commit 8a1a3127 by Chif Gergő

dashboard: Adjust style on the select2 dropdown list.

The select2 container has a fix 20em min-width. It causes the dropdown sollapse in the table. Added 10em min-width and width 100% to scale to its content.
parent 40175563
Pipeline #691 passed with stage
in 0 seconds
......@@ -1336,7 +1336,7 @@ class AclUserOrGroupAddForm(forms.Form):
name = forms.CharField(
widget=autocomplete.ListSelect2(
url='autocomplete.acl.user-group',
attrs={'class': 'form-control',
attrs={'class': 'form-control access-select-width',
'data-html': 'true',
'data-placeholder': _("Name of group or user")}))
......
......@@ -1588,3 +1588,10 @@ textarea[name="new_members"] {
}
}
}
.access-select-width {
~ .select2-container {
min-width: 10em !important;
width: 100% !important;
}
}
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 sign in to comment