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

What is the proper way to modify width and hight of the field in admin panel? #61

Open
anryangelov opened this issue Sep 2, 2021 · 2 comments

Comments

@anryangelov
Copy link

Should I override

@nnseva
Copy link
Owner

nnseva commented Sep 3, 2021

You can override static files using a common project-wide static folder as described in the Django documentation.

@anryangelov
Copy link
Author

I've done it that way but I am not sure whether it is necessary to extend JSONEditro.

class CustomJSONEditor(JSONEditor):
    class Media:
        css = {"all": ("my_jsoneditor/my_django_jsoneditor.css",)}

where my_django_jsoneditor.css contains

  div div .outer_jsoneditor {
    width: 610px;
}

Maybe with project-wide static folder there is no need to extend JSONEditor. I will check it.
Thanks for your answer.

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

2 participants