bradleyg / django-s3direct

Directly upload files to S3 compatible services with Django.
MIT License
653 stars 234 forks source link

File inputs overlap with labels in multiple fields forms #220

Open ABODFTW opened 3 years ago

ABODFTW commented 3 years ago

When I implemented this amazing library it looked like this because of one thing! image

Because the widget div isn't taking the full width.

The solution would be to add the following styles to the parent div

.s3direct {
    display: block; 
    width: 100%;
    margin-bottom: 1em; // Optional: to make it look less crumpled
}

And now it looks like this image

I'm not sure if this is a problem for you, but hopefully, it helps someone.

Would make a pull request if you think it is worth it