carltongibson / django-filter

A generic system for filtering Django QuerySets based on user selections
https://django-filter.readthedocs.io/en/main/
Other
4.42k stars 767 forks source link

RangeWidget: the dash separtor is not centered #1528

Closed Benji81 closed 2 years ago

Benji81 commented 2 years ago

Hello,

There is no space between the - and the second input image

In multiwidget.html: {% for widget in widget.subwidgets %}{% include widget.template_name %}{% if forloop.first %}-{% endif %}{% endfor %} should be {% for widget in widget.subwidgets %}{% include widget.template_name %}{% if forloop.first %} - {% endif %}{% endfor %}

And maybe put the separator in a with a class to allow easy css modification

carltongibson commented 2 years ago

There is no space. See https://github.com/carltongibson/django-filter/blob/main/django_filters/templates/django_filters/widgets/multiwidget.html.

Maybe you have some margin-right in play? 🤔