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

Does not align with other fields

Open rvernica opened this issue 6 years ago • 2 comments

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

rvernica avatar Mar 23 '18 20:03 rvernica

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

robinchow avatar Jan 24 '19 20:01 robinchow

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;
}

bctiemann avatar Jul 08 '21 00:07 bctiemann