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

Does not align with other fields #14

Open
rvernica opened this issue Mar 23, 2018 · 2 comments
Open

Does not align with other fields #14

rvernica opened this issue Mar 23, 2018 · 2 comments

Comments

@rvernica
Copy link

It does not seem to align with the rest of the fields on the Admin form. Instead it aligns itself from the left of the form. It might be related to changes in Django.
align

  • Django: 2.0.2
  • django-prettyjson: 0.3.0
@robinchow
Copy link

The latest version of django-prettyjson (I'm currently using Django 2.1 and django-prettyjson 0.4.1) seems to fix this.

@bctiemann
Copy link

bctiemann commented Jul 8, 2021

This is happening for me with django-prettyjson 0.4.1 and Django 3.1. I'm using Safari (14.1.1) however, and it seems to be related to -webkit-appearance in the django admin's responsive.css (Chrome doesn't have this problem).

Screen Shot 2021-07-07 at 8 46 00 PM

If I disable -webkit-appearance: none on the button, it fixes the issue. (It also turns off the weird non-native styling.)

edit: If I add this to prettyjson.css, it fixes it:

.jsonwidget button {
  -webkit-appearance: button;
}

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

3 participants