bhch / django-jsonform

A better, user-friendly JSON editing form field for Django admin. Also supports Postgres ArrayField.
https://django-jsonform.rtfd.io
BSD 3-Clause "New" or "Revised" License
307 stars 31 forks source link

Default layout of jsonform in Django Admin #135

Closed gersmann closed 5 months ago

gersmann commented 6 months ago

Thank you for the great library. One question, when I've set up django-jsonform I am gettting a pretty narrow form with also narrow containers for field labels. I was wondering if this is how it is supposed ot be rendered or if I made a mistake in the setup.

This is how the admin form looks for me:

image
bhch commented 6 months ago

Could you tell me which Django version are you using so I can try to reproduce this?

gersmann commented 6 months ago

This is on Django 4.2.9, a blank sample project I created.

bhch commented 5 months ago

I'm able to reproduce it.

The form is wider in Django v3.x but it appears they have made some changes in admin's CSS in v4.x which is making the form narrow.

I'll try to release a fix soon.

Thank you for reporting this issue.

bhch commented 5 months ago

This has been fixed in v2.21.3. Please update and test it out.

Thank you.