django-suit icon indicating copy to clipboard operation
django-suit copied to clipboard

Template Issue Filter position v2

Open pythonvelosiped opened this issue 4 years ago • 4 comments

How to fix that? Django 3.1.6 , template v2

pythonvelosiped avatar Mar 05 '21 09:03 pythonvelosiped

Yes, django 3.1, exactly the same problem

aquinary avatar Mar 22 '21 16:03 aquinary

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 :)

aquinary avatar Mar 24 '21 19:03 aquinary

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

gamesbook avatar Mar 25 '21 06:03 gamesbook

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

HtmlMak avatar Apr 07 '21 15:04 HtmlMak