Open rvernica opened 6 years ago
The latest version of django-prettyjson (I'm currently using Django 2.1 and django-prettyjson 0.4.1) seems to fix this.
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).
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;
}
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.
2.0.2
0.3.0