Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template Issue Filter position v2 #777

Open
pythonvelosiped opened this issue Mar 5, 2021 · 4 comments
Open

Template Issue Filter position v2 #777

pythonvelosiped opened this issue Mar 5, 2021 · 4 comments

Comments

@pythonvelosiped
Copy link

How to fix that? Django 3.1.6 , template v2

@pythonvelosiped pythonvelosiped changed the title Template Issue v2 Template Issue Filter position v2 Mar 5, 2021
@aquinary
Copy link

Yes, django 3.1, exactly the same problem

@aquinary
Copy link

aquinary commented Mar 24, 2021

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
Copy link

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

@HtmlMak
Copy link

HtmlMak commented Apr 7, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants