silentsokolov / django-admin-rangefilter

A Django app that lets you filter data by date range and numeric range in the admin UI
MIT License
713 stars 106 forks source link

Incompatibility with django-bootstrap-admin #66

Open belonesox opened 3 years ago

belonesox commented 3 years ago

Because of hardcoding CSS rules like that

margin-left: -16em !important;

https://github.com/silentsokolov/django-admin-rangefilter/blob/1799f78c4b0df917b8c9fdb6f90716a51ba0530f/rangefilter/templates/rangefilter/date_filter.html#L55

when rangefilter used in admin panels with attributes in sidebar, DatePicker goes out of left margin of screen, loosing «Mondays» and selector for previous months.

image

And this even cannot be fixed in application templates in «{% block extrastyle %}» because this CSS inlining with «!important».

I have to fork it, to fix by commenting these rules, but I hope, the author can provide better solution.