You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When rendering a select field its css_class and wrapper_class can be changed.
But its "select" div stays the same and can't be changed without overriding the template.
Current "select.html" template:
{%loadcrispy_forms_bulma_field%}
<divclass="control">
<divclass="select{% if field|is_selectmultiple %} is-multiple{%endif%}{% if field.errors %} is-danger{% endif %}">
{%crispy_fieldfield%}
</div>
</div>
If you want to make the select field take up the full width, for example, the control and input field css_class can be set, but the select field will still stay the same and refuse to take the available space. Therefore stopping the input field from actually expanding.
Perhaps i'm just overlooking something with bulma, but as i see it you can't really make a select field take up the full width without overriding the template or creating an unnecessary css rule.
The text was updated successfully, but these errors were encountered:
you are right, this is not supported yet. I've been using a custom field and template as a workaround for a while (I'm undecided if this is the right approach, that's why it's not in main yet):
Perhaps i'm just overlooking something with bulma, but as i see it you can't really make a select field take up the full width without overriding the template or creating an unnecessary css rule.
the trick is to use both "is-expanded" and "is-fullwidth"
When rendering a select field its css_class and wrapper_class can be changed.
But its "select" div stays the same and can't be changed without overriding the template.
Current "select.html" template:
If you want to make the select field take up the full width, for example, the control and input field css_class can be set, but the select field will still stay the same and refuse to take the available space. Therefore stopping the input field from actually expanding.
Perhaps i'm just overlooking something with bulma, but as i see it you can't really make a select field take up the full width without overriding the template or creating an unnecessary css rule.
The text was updated successfully, but these errors were encountered: