jmrivas86 / django-json-widget

An alternative widget that makes it easy to edit the new Django's field JSONField (PostgreSQL specific model fields)
MIT License
440 stars 88 forks source link

Widget seems to be right aligned? #12

Closed ramonsaraiva closed 4 years ago

ramonsaraiva commented 6 years ago

Seems like the widget floats to the right, leaving this white spacement in-between the column name and the value:

image

I think this happens because of https://github.com/jmrivas86/django-json-widget/blob/master/django_json_widget/templates/django_json_widget.html#L1

Any special reason to have that float: right? Can that be removed?

ramonsaraiva commented 6 years ago

Prolly related to the 90% width, actually.. cause 10% in this screen is actually quite a bit, so it happens to align a bit to the right

vinaypai commented 5 years ago

@ramonsaraiva you're right. It's because of the float:right combined with the 90% width which can be too much on wide screens. I have it fixed (among other things) in my [fork]https://github.com/vinaypai/django-json-widget/tree/customconfig). I will issue a pull request once I have a chance to update the documentation with the new features and verify it works with older versions of django and python.

jmrivas86 commented 4 years ago

I close this issue because it was solved in #20