darklow / django-suit

Modern theme for Django admin interface
http://djangosuit.com/
Other
2.33k stars 704 forks source link

Template Issue Filter position v2 #777

Open pythonvelosiped opened 3 years ago

pythonvelosiped commented 3 years ago

How to fix that? Django 3.1.6 , template v2

aquinary commented 3 years ago

Yes, django 3.1, exactly the same problem

aquinary commented 3 years ago

Judging by the demo on the site, the developer has already fixed this bug, but has not posted a new version. Or it is found only on Django 3.1 I made a fix that fixes the problem of incorrect filter placement. You need to open the place where you have installed 'site-packages' and follow a certain path. I have this env/Lib/site-packages/suit/static/suit/css/suit.css In it, at the very beginning, you need to add:

.main {
  width: 100%;
}
#changelist {
  display: grid;
  grid-template-areas: "list filter";
  grid-auto-columns: 5fr 1fr;
}

.changelist-form-container {
  grid-area: list;
}
#changelist #changelist-filter {
  margin-left: auto;
  margin-top: 6px;
  grid-area: filter;
}

It worked for me :)

gamesbook commented 3 years ago

@Aquinary Appreciate the code, but this needs to go into a pull request, please, so it can be part of a release.

HtmlMak commented 3 years ago

@pythonvelosiped look at this fork https://github.com/pulse-mind/django-suit