Skip to main content

A quick fix for when the StreamField goes too deep.

Project description

Alright… you messed up. Maybe you didn’t think your content through well enough. Maybe you really need to meet a deadline and nesting StreamField blocks is the only way through.

Look, I don’t judge you. I’m here to help. Just pip install wagtailhavetheabilitytoactuallyseefieldsintheadmin, add it to your installed apps, and you’re good to go. Just don’t say you got it from me, okay?

It’ll basically just make nested fields wide enough to see without getting claustrophobic.

For instance, when you’ve got a StreamField like this:

![Without wagtailhavetheabilitytoactuallyseefieldsintheadmin](without-wagtailhavetheabilitytoactuallyseefieldsintheadmin.png)

We can make it look like this:

![With wagtailhavetheabilitytoactuallyseefieldsintheadmin](with-wagtailhavetheabilitytoactuallyseefieldsintheadmin.png)

Much better. By the way, it basically just expands nested fields to cover the help text placeholders. If you use help text inside of StreamField, you can’t use this. It doesn’t affect top level fields, though.

But, is there a better way?

Yeah, probably. [It’s being discussed](https://github.com/torchbox/wagtail/issues/2305), so hold your horses. This reason this happens in the first place is because some space on the side is saved for help text, which is obviously a good thing to have. So this is gonna take some time to solve long-term if we want to keep that feature.

For complex fields, you should probably just make them look right anyway. See [wagtailblocks_cards](https://github.com/alexgleason/wagtailblocks_cards) for an example of this. If you have time, I suggest giving that a shot. Otherwise, wagtailhavetheabilitytoactuallyseefieldsintheadmin is your friend.

License

This is free and unencumbered software released into the public domain. View the UNLICENSE file in this repository for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wagtailhavetheabilitytoactuallyseefieldsintheadmin, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size wagtailhavetheabilitytoactuallyseefieldsintheadmin-1.0.0-py2.py3-none-any.whl (4.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page