-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Tweak file upload layout, add filepond-plugin-media-preview, add disable preview option #1626
Conversation
I think I actually prefer |
Yeah, multi file spacing is a must. Then, we can use a compact layout by default :) Make sure that the |
Added some spacing: At the moment these changes have no impact on the The only thing I've (just) done is set the initial |
One hiccup. Despite the It doesn't look like they're actually implemented (as far as I can see). Not sure if there's another way we can disable the plugin or if we'd need to wait for filepond-plugin-media-preview to fix it? |
idk if @nielsboogaard will ever implement this. although the repo had an update 5 days ago, npm does not received a new version since June 2021. Me and @danharrin talked about forking this and maintain it ourselves. If thats ok, i can fork and make the chages, or feel free if you want to |
Yeah it doesn't look like it's that frequently updated. If you can fork it and implement those options that'd be great! |
Hey guys, thanks for mentioning me. Could you elaborate a bit more about what needs to be implemented in the media preview plugin? |
Hey! Nice to see you! We need |
also, @nielsboogaard all of your filepond plugins seems to fit very nice with filament, but we also need the security patches at least :) |
Clear. Will have a look this afternoon at the mentioned configuration options. Will also create a release soonish containing the security fixes. |
Thank you! |
Configuration options are taken into account now, and all dependencies are bumped to latest version. See https://github.com/nielsboogaard/filepond-plugin-media-preview, if you use latest version 1.0.11 you should be good to go. |
Brilliant. Can confirm Filament's Thanks Niels! |
Should I set the default FileUpload layout to compact now? I think that's the last thing outstanding... |
I think so |
@danharrin can we get this merged? Really needing this 😛 |
Perfect! Thank you so much. |
The spacing seems to work only with 2 files, not more |
@robertorinaldi-dev Thanks, have submitted a fix. |
This PR makes some minor tweaks to the compact file upload layout, so that it fits nicely with the other fields and is actually a bit more compact. Changes are:
min-height
on the drop area element has been tweaked so it that it's the same height as the uploading/file element, removing the dead space below the field when a value is setThis PR also adds a
disablePreview()
method, to switch off the image preview feature.These changes allow for a very compact and consistently sized single file upload field that fits alongside other fields.
Before:
After:
Blank values:
Also includes filepond-plugin-media-preview feature from #1643