django-filer icon indicating copy to clipboard operation
django-filer copied to clipboard

Dropzone 'mobile' CSS issues in size-constrained containers

Open Bartvds opened this issue 9 years ago • 4 comments

The upload widget with the dropzone has a check on the width of the element and then toggles a mobile CSS class. This CSS doesn't work well with TabularInline's (used in the admin).

It seems that the widget in this mobile mode adds vertical space, but the way it is implemented does nothing good for TabularInlines (the content gets pushed around or breaks the box):

filer-css-1

Also the dropzone is widget very large and doesn't fit in compact layouts (like TabularInlines with multiple fields, or custom templates, popups etc).

In our old app we have the old filer widget that was so much smaller and worked well besides other fields:


filer-widget


Bartvds avatar Aug 09 '16 15:08 Bartvds

I second this. It also does not initialize correctly when in a newly added inline (added with "add more"), but that's another issue...

benzkji avatar Aug 12 '16 06:08 benzkji

I had the same issue and have updated the styling to resolve it. I've added as pull request #908 that's pending approval, so hopefully it should be resolved in a future release.

With my changes it now looks like:

image

Or with djangocms-admin-style:

image 2

tdsymonds avatar Aug 24 '16 13:08 tdsymonds

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 28 '22 22:07 stale[bot]

could be closed, I guess.

benzkji avatar Aug 01 '22 10:08 benzkji

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 31 '22 00:10 stale[bot]

This will now be closed due to inactivity, but feel free to reopen it.

stale[bot] avatar Nov 28 '22 19:11 stale[bot]